home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1994-08-30 | 14.2 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6b 77 7a 68 40 68 61 |piled by| kwzh@ha|
|00000020| 6c 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |l.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 54 75 65 20 | 41 75 67 20 33 30 20 32 | on Tue |Aug 30 2|
|00000040| 32 3a 33 33 3a 33 36 20 | 31 39 39 34 0a 3b 3b 3b |2:33:36 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 61 6d 64 2f | from fi|le /amd/|
|00000060| 63 68 75 72 63 68 79 2f | 68 6f 6d 65 2f 67 64 2f |churchy/|home/gd/|
|00000070| 67 6e 75 2f 65 6d 61 63 | 73 2f 31 39 2e 30 2f 6c |gnu/emac|s/19.0/l|
|00000080| 69 73 70 2f 72 65 70 6c | 61 63 65 2e 65 6c 0a 3b |isp/repl|ace.el.;|
|00000090| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|000000a0| 20 31 39 2e 32 35 2e 39 | 35 2e 31 2e 0a 3b 3b 3b | 19.25.9|5.1..;;;|
|000000b0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000c0| 6e 20 46 53 46 20 32 2e | 31 30 0a 3b 3b 3b 20 6f |n FSF 2.|10.;;; o|
|000000d0| 70 74 69 6d 69 7a 61 74 | 69 6f 6e 20 69 73 20 6f |ptimizat|ion is o|
|000000e0| 6e 2e 0a 3b 3b 3b 20 74 | 68 69 73 20 66 69 6c 65 |n..;;; t|his file|
|000000f0| 20 75 73 65 73 20 6f 70 | 63 6f 64 65 73 20 77 68 | uses op|codes wh|
|00000100| 69 63 68 20 64 6f 20 6e | 6f 74 20 65 78 69 73 74 |ich do n|ot exist|
|00000110| 20 69 6e 20 45 6d 61 63 | 73 20 31 38 2e 0a 0a 28 | in Emac|s 18...(|
|00000120| 69 66 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |if (and |(boundp |
|00000130| 27 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 29 0a |'emacs-v|ersion).|
|00000140| 09 20 28 6f 72 20 28 61 | 6e 64 20 28 62 6f 75 6e |. (or (a|nd (boun|
|00000150| 64 70 20 27 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |dp 'epoc|h::versi|
|00000160| 6f 6e 29 20 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |on) epoc|h::versi|
|00000170| 6f 6e 29 0a 09 20 20 20 | 20 20 28 73 74 72 69 6e |on).. | (strin|
|00000180| 67 2d 6c 65 73 73 70 20 | 65 6d 61 63 73 2d 76 65 |g-lessp |emacs-ve|
|00000190| 72 73 69 6f 6e 20 22 31 | 39 22 29 29 29 0a 20 20 |rsion "1|9"))). |
|000001a0| 20 20 28 65 72 72 6f 72 | 20 22 60 2f 61 6d 64 2f | (error| "`/amd/|
|000001b0| 63 68 75 72 63 68 79 2f | 68 6f 6d 65 2f 67 64 2f |churchy/|home/gd/|
|000001c0| 67 6e 75 2f 65 6d 61 63 | 73 2f 31 39 2e 30 2f 6c |gnu/emac|s/19.0/l|
|000001d0| 69 73 70 2f 72 65 70 6c | 61 63 65 2e 65 6c 27 20 |isp/repl|ace.el' |
|000001e0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|000001f0| 20 45 6d 61 63 73 20 31 | 39 22 29 29 0a 0a 28 64 | Emacs 1|9"))..(d|
|00000200| 65 66 63 6f 6e 73 74 20 | 63 61 73 65 2d 72 65 70 |efconst |case-rep|
|00000210| 6c 61 63 65 20 74 20 22 | 5c 0a 2a 4e 6f 6e 2d 6e |lace t "|\.*Non-n|
|00000220| 69 6c 20 6d 65 61 6e 73 | 20 71 75 65 72 79 2d 72 |il means| query-r|
|00000230| 65 70 6c 61 63 65 20 73 | 68 6f 75 6c 64 20 70 72 |eplace s|hould pr|
|00000240| 65 73 65 72 76 65 20 63 | 61 73 65 20 69 6e 20 72 |eserve c|ase in r|
|00000250| 65 70 6c 61 63 65 6d 65 | 6e 74 73 2e 22 29 0a 28 |eplaceme|nts.").(|
|00000260| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 21 84 08 |byte-cod|e "..!..|
|00000270| 00 c2 11 c3 c4 c5 5c 22 | 87 22 20 5b 62 6f 75 6e |......\"|." [boun|
|00000280| 64 70 20 71 75 65 72 79 | 2d 72 65 70 6c 61 63 65 |dp query|-replace|
|00000290| 2d 68 69 73 74 6f 72 79 | 20 6e 69 6c 20 64 65 66 |-history| nil def|
|000002a0| 61 6c 69 61 73 20 71 75 | 65 72 79 2d 72 65 70 6c |alias qu|ery-repl|
|000002b0| 61 63 65 2d 72 65 61 64 | 2d 61 72 67 73 20 23 5b |ace-read|-args #[|
|000002c0| 28 73 74 72 69 6e 67 29 | 20 22 c0 89 19 1a c3 c4 |(string)| "......|
|000002d0| c5 0e 06 5c 22 c0 89 89 | c7 25 12 c3 c4 c8 0e 06 |...\"...|.%......|
|000002e0| 5c 6e 23 c0 89 89 c7 25 | 11 5c 6e 09 0e 09 45 2a |\n#....%|.\n...E*|
|000002f0| 87 22 20 5b 6e 69 6c 20 | 74 6f 20 66 72 6f 6d 20 |." [nil |to from |
|00000300| 72 65 61 64 2d 66 72 6f | 6d 2d 6d 69 6e 69 62 75 |read-fro|m-minibu|
|00000310| 66 66 65 72 20 66 6f 72 | 6d 61 74 20 22 25 73 3a |ffer for|mat "%s:|
|00000320| 20 22 20 73 74 72 69 6e | 67 20 71 75 65 72 79 2d | " strin|g query-|
|00000330| 72 65 70 6c 61 63 65 2d | 68 69 73 74 6f 72 79 20 |replace-|history |
|00000340| 22 25 73 20 25 73 20 77 | 69 74 68 3a 20 22 20 63 |"%s %s w|ith: " c|
|00000350| 75 72 72 65 6e 74 2d 70 | 72 65 66 69 78 2d 61 72 |urrent-p|refix-ar|
|00000360| 67 5d 20 36 5d 5d 20 33 | 29 0a 28 64 65 66 61 6c |g] 6]] 3|).(defal|
|00000370| 69 61 73 20 27 71 75 65 | 72 79 2d 72 65 70 6c 61 |ias 'que|ry-repla|
|00000380| 63 65 20 23 5b 28 66 72 | 6f 6d 2d 73 74 72 69 6e |ce #[(fr|om-strin|
|00000390| 67 20 74 6f 2d 73 74 72 | 69 6e 67 20 26 6f 70 74 |g to-str|ing &opt|
|000003a0| 69 6f 6e 61 6c 20 61 72 | 67 29 20 22 c0 09 5c 6e |ional ar|g) "..\n|
|000003b0| c3 c4 0d 25 88 0e 06 86 | 10 00 c7 c8 21 87 22 20 |...%....|....!." |
|000003c0| 5b 70 65 72 66 6f 72 6d | 2d 72 65 70 6c 61 63 65 |[perform|-replace|
|000003d0| 20 66 72 6f 6d 2d 73 74 | 72 69 6e 67 20 74 6f 2d | from-st|ring to-|
|000003e0| 73 74 72 69 6e 67 20 74 | 20 6e 69 6c 20 61 72 67 |string t| nil arg|
|000003f0| 20 75 6e 72 65 61 64 2d | 63 6f 6d 6d 61 6e 64 2d | unread-|command-|
|00000400| 65 76 65 6e 74 73 20 6d | 65 73 73 61 67 65 20 22 |events m|essage "|
|00000410| 44 6f 6e 65 22 5d 20 36 | 20 22 5c 0a 52 65 70 6c |Done"] 6| "\.Repl|
|00000420| 61 63 65 20 73 6f 6d 65 | 20 6f 63 63 75 72 72 65 |ace some| occurre|
|00000430| 6e 63 65 73 20 6f 66 20 | 46 52 4f 4d 2d 53 54 52 |nces of |FROM-STR|
|00000440| 49 4e 47 20 77 69 74 68 | 20 54 4f 2d 53 54 52 49 |ING with| TO-STRI|
|00000450| 4e 47 2e 0a 41 73 20 65 | 61 63 68 20 6d 61 74 63 |NG..As e|ach matc|
|00000460| 68 20 69 73 20 66 6f 75 | 6e 64 2c 20 74 68 65 20 |h is fou|nd, the |
|00000470| 75 73 65 72 20 6d 75 73 | 74 20 74 79 70 65 20 61 |user mus|t type a|
|00000480| 20 63 68 61 72 61 63 74 | 65 72 20 73 61 79 69 6e | charact|er sayin|
|00000490| 67 0a 77 68 61 74 20 74 | 6f 20 64 6f 20 77 69 74 |g.what t|o do wit|
|000004a0| 68 20 69 74 2e 20 20 46 | 6f 72 20 64 69 72 65 63 |h it. F|or direc|
|000004b0| 74 69 6f 6e 73 2c 20 74 | 79 70 65 20 5c 5c 5b 68 |tions, t|ype \\[h|
|000004c0| 65 6c 70 2d 63 6f 6d 6d | 61 6e 64 5d 20 61 74 20 |elp-comm|and] at |
|000004d0| 74 68 61 74 20 74 69 6d | 65 2e 0a 0a 50 72 65 73 |that tim|e...Pres|
|000004e0| 65 72 76 65 73 20 63 61 | 73 65 20 69 6e 20 65 61 |erves ca|se in ea|
|000004f0| 63 68 20 72 65 70 6c 61 | 63 65 6d 65 6e 74 20 69 |ch repla|cement i|
|00000500| 66 20 60 63 61 73 65 2d | 72 65 70 6c 61 63 65 27 |f `case-|replace'|
|00000510| 20 61 6e 64 20 60 63 61 | 73 65 2d 66 6f 6c 64 2d | and `ca|se-fold-|
|00000520| 73 65 61 72 63 68 27 0a | 61 72 65 20 6e 6f 6e 2d |search'.|are non-|
|00000530| 6e 69 6c 20 61 6e 64 20 | 46 52 4f 4d 2d 53 54 52 |nil and |FROM-STR|
|00000540| 49 4e 47 20 68 61 73 20 | 6e 6f 20 75 70 70 65 72 |ING has |no upper|
|00000550| 63 61 73 65 20 6c 65 74 | 74 65 72 73 2e 0a 54 68 |case let|ters..Th|
|00000560| 69 72 64 20 61 72 67 20 | 44 45 4c 49 4d 49 54 45 |ird arg |DELIMITE|
|00000570| 44 20 28 70 72 65 66 69 | 78 20 61 72 67 20 69 66 |D (prefi|x arg if|
|00000580| 20 69 6e 74 65 72 61 63 | 74 69 76 65 29 2c 20 69 | interac|tive), i|
|00000590| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 6d 65 61 6e 73 |f non-ni|l, means|
|000005a0| 20 72 65 70 6c 61 63 65 | 0a 6f 6e 6c 79 20 6d 61 | replace|.only ma|
|000005b0| 74 63 68 65 73 20 73 75 | 72 72 6f 75 6e 64 65 64 |tches su|rrounded|
|000005c0| 20 62 79 20 77 6f 72 64 | 20 62 6f 75 6e 64 61 72 | by word| boundar|
|000005d0| 69 65 73 2e 0a 0a 54 6f | 20 63 75 73 74 6f 6d 69 |ies...To| customi|
|000005e0| 7a 65 20 70 6f 73 73 69 | 62 6c 65 20 72 65 73 70 |ze possi|ble resp|
|000005f0| 6f 6e 73 65 73 2c 20 63 | 68 61 6e 67 65 20 74 68 |onses, c|hange th|
|00000600| 65 20 5c 22 62 69 6e 64 | 69 6e 67 73 5c 22 20 69 |e \"bind|ings\" i|
|00000610| 6e 20 60 71 75 65 72 79 | 2d 72 65 70 6c 61 63 65 |n `query|-replace|
|00000620| 2d 6d 61 70 27 2e 22 20 | 28 71 75 65 72 79 2d 72 |-map'." |(query-r|
|00000630| 65 70 6c 61 63 65 2d 72 | 65 61 64 2d 61 72 67 73 |eplace-r|ead-args|
|00000640| 20 22 51 75 65 72 79 20 | 72 65 70 6c 61 63 65 22 | "Query |replace"|
|00000650| 29 5d 29 0a 28 64 65 66 | 69 6e 65 2d 6b 65 79 20 |)]).(def|ine-key |
|00000660| 65 73 63 2d 6d 61 70 20 | 22 25 22 20 28 71 75 6f |esc-map |"%" (quo|
|00000670| 74 65 20 71 75 65 72 79 | 2d 72 65 70 6c 61 63 65 |te query|-replace|
|00000680| 29 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 71 75 |)).(defa|lias 'qu|
|00000690| 65 72 79 2d 72 65 70 6c | 61 63 65 2d 72 65 67 65 |ery-repl|ace-rege|
|000006a0| 78 70 20 23 5b 28 72 65 | 67 65 78 70 20 74 6f 2d |xp #[(re|gexp to-|
|000006b0| 73 74 72 69 6e 67 20 26 | 6f 70 74 69 6f 6e 61 6c |string &|optional|
|000006c0| 20 61 72 67 29 20 22 c0 | 09 5c 6e c3 89 5c 66 25 | arg) ".|.\n..\f%|
|000006d0| 88 0d 86 0f 00 c6 c7 21 | 87 22 20 5b 70 65 72 66 |.......!|." [perf|
|000006e0| 6f 72 6d 2d 72 65 70 6c | 61 63 65 20 72 65 67 65 |orm-repl|ace rege|
|000006f0| 78 70 20 74 6f 2d 73 74 | 72 69 6e 67 20 74 20 61 |xp to-st|ring t a|
|00000700| 72 67 20 75 6e 72 65 61 | 64 2d 63 6f 6d 6d 61 6e |rg unrea|d-comman|
|00000710| 64 2d 65 76 65 6e 74 73 | 20 6d 65 73 73 61 67 65 |d-events| message|
|00000720| 20 22 44 6f 6e 65 22 5d | 20 36 20 22 5c 0a 52 65 | "Done"]| 6 "\.Re|
|00000730| 70 6c 61 63 65 20 73 6f | 6d 65 20 74 68 69 6e 67 |place so|me thing|
|00000740| 73 20 61 66 74 65 72 20 | 70 6f 69 6e 74 20 6d 61 |s after |point ma|
|00000750| 74 63 68 69 6e 67 20 52 | 45 47 45 58 50 20 77 69 |tching R|EGEXP wi|
|00000760| 74 68 20 54 4f 2d 53 54 | 52 49 4e 47 2e 0a 41 73 |th TO-ST|RING..As|
|00000770| 20 65 61 63 68 20 6d 61 | 74 63 68 20 69 73 20 66 | each ma|tch is f|
|00000780| 6f 75 6e 64 2c 20 74 68 | 65 20 75 73 65 72 20 6d |ound, th|e user m|
|00000790| 75 73 74 20 74 79 70 65 | 20 61 20 63 68 61 72 61 |ust type| a chara|
|000007a0| 63 74 65 72 20 73 61 79 | 69 6e 67 0a 77 68 61 74 |cter say|ing.what|
|000007b0| 20 74 6f 20 64 6f 20 77 | 69 74 68 20 69 74 2e 20 | to do w|ith it. |
|000007c0| 20 46 6f 72 20 64 69 72 | 65 63 74 69 6f 6e 73 2c | For dir|ections,|
|000007d0| 20 74 79 70 65 20 5c 5c | 5b 68 65 6c 70 2d 63 6f | type \\|[help-co|
|000007e0| 6d 6d 61 6e 64 5d 20 61 | 74 20 74 68 61 74 20 74 |mmand] a|t that t|
|000007f0| 69 6d 65 2e 0a 0a 50 72 | 65 73 65 72 76 65 73 20 |ime...Pr|eserves |
|00000800| 63 61 73 65 20 69 6e 20 | 65 61 63 68 20 72 65 70 |case in |each rep|
|00000810| 6c 61 63 65 6d 65 6e 74 | 20 69 66 20 60 63 61 73 |lacement| if `cas|
|00000820| 65 2d 72 65 70 6c 61 63 | 65 27 20 61 6e 64 20 60 |e-replac|e' and `|
|00000830| 63 61 73 65 2d 66 6f 6c | 64 2d 73 65 61 72 63 68 |case-fol|d-search|
|00000840| 27 0a 61 72 65 20 6e 6f | 6e 2d 6e 69 6c 20 61 6e |'.are no|n-nil an|
|00000850| 64 20 52 45 47 45 58 50 | 20 68 61 73 20 6e 6f 20 |d REGEXP| has no |
|00000860| 75 70 70 65 72 63 61 73 | 65 20 6c 65 74 74 65 72 |uppercas|e letter|
|00000870| 73 2e 0a 54 68 69 72 64 | 20 61 72 67 20 44 45 4c |s..Third| arg DEL|
|00000880| 49 4d 49 54 45 44 20 28 | 70 72 65 66 69 78 20 61 |IMITED (|prefix a|
|00000890| 72 67 20 69 66 20 69 6e | 74 65 72 61 63 74 69 76 |rg if in|teractiv|
|000008a0| 65 29 2c 20 69 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |e), if n|on-nil, |
|000008b0| 6d 65 61 6e 73 20 72 65 | 70 6c 61 63 65 0a 6f 6e |means re|place.on|
|000008c0| 6c 79 20 6d 61 74 63 68 | 65 73 20 73 75 72 72 6f |ly match|es surro|
|000008d0| 75 6e 64 65 64 20 62 79 | 20 77 6f 72 64 20 62 6f |unded by| word bo|
|000008e0| 75 6e 64 61 72 69 65 73 | 2e 0a 49 6e 20 54 4f 2d |undaries|..In TO-|
|000008f0| 53 54 52 49 4e 47 2c 20 | 60 5c 5c 26 27 20 73 74 |STRING, |`\\&' st|
|00000900| 61 6e 64 73 20 66 6f 72 | 20 77 68 61 74 65 76 65 |ands for| whateve|
|00000910| 72 20 6d 61 74 63 68 65 | 64 20 74 68 65 20 77 68 |r matche|d the wh|
|00000920| 6f 6c 65 20 6f 66 20 52 | 45 47 45 58 50 2c 0a 61 |ole of R|EGEXP,.a|
|00000930| 6e 64 20 60 5c 5c 3d 5c | 5c 4e 27 20 28 77 68 65 |nd `\\=\|\N' (whe|
|00000940| 72 65 20 4e 20 69 73 20 | 61 20 64 69 67 69 74 29 |re N is |a digit)|
|00000950| 20 73 74 61 6e 64 73 20 | 66 6f 72 0a 20 77 68 61 | stands |for. wha|
|00000960| 74 65 76 65 72 20 77 68 | 61 74 20 6d 61 74 63 68 |tever wh|at match|
|00000970| 65 64 20 74 68 65 20 4e | 74 68 20 60 5c 5c 28 2e |ed the N|th `\\(.|
|00000980| 2e 2e 5c 5c 29 27 20 69 | 6e 20 52 45 47 45 58 50 |..\\)' i|n REGEXP|
|00000990| 2e 22 20 28 71 75 65 72 | 79 2d 72 65 70 6c 61 63 |." (quer|y-replac|
|000009a0| 65 2d 72 65 61 64 2d 61 | 72 67 73 20 22 51 75 65 |e-read-a|rgs "Que|
|000009b0| 72 79 20 72 65 70 6c 61 | 63 65 20 72 65 67 65 78 |ry repla|ce regex|
|000009c0| 70 22 29 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |p")]).(d|efalias |
|000009d0| 27 6d 61 70 2d 71 75 65 | 72 79 2d 72 65 70 6c 61 |'map-que|ry-repla|
|000009e0| 63 65 2d 72 65 67 65 78 | 70 20 23 5b 28 72 65 67 |ce-regex|p #[(reg|
|000009f0| 65 78 70 20 74 6f 2d 73 | 74 72 69 6e 67 73 20 26 |exp to-s|trings &|
|00000a00| 6f 70 74 69 6f 6e 61 6c | 20 61 72 67 29 20 22 c0 |optional| arg) ".|
|00000a10| 19 5c 6e 3c 83 5c 66 00 | 5c 6e 11 82 3f 00 5c 6e |.\n<.\f.|\n..?.\n|
|00000a20| 47 c3 55 84 3f 00 c4 c5 | 5c 6e 5c 22 83 33 00 c6 |G.U.?...|\n\".3..|
|00000a30| 09 5c 6e c3 c4 c5 5c 6e | 5c 22 4f 43 5c 22 11 5c |.\n...\n|\"OC\".\|
|00000a40| 6e c4 c5 5c 6e 5c 22 54 | c0 4f 89 12 82 0d 00 c6 |n..\n\"T|.O......|
|00000a50| 09 5c 6e 43 5c 22 11 c7 | 89 12 82 0d 00 c8 0e 09 |.\nC\"..|........|
|00000a60| 09 ca 89 c0 0e 0b 26 06 | 88 29 0e 5c 66 86 54 00 |......&.|.).\f.T.|
|00000a70| cd ce 21 87 22 20 5b 6e | 69 6c 20 72 65 70 6c 61 |..!." [n|il repla|
|00000a80| 63 65 6d 65 6e 74 73 20 | 74 6f 2d 73 74 72 69 6e |cements |to-strin|
|00000a90| 67 73 20 30 20 73 74 72 | 69 6e 67 2d 6d 61 74 63 |gs 0 str|ing-matc|
|00000aa0| 68 20 22 20 22 20 61 70 | 70 65 6e 64 20 22 22 20 |h " " ap|pend "" |
|00000ab0| 70 65 72 66 6f 72 6d 2d | 72 65 70 6c 61 63 65 20 |perform-|replace |
|00000ac0| 72 65 67 65 78 70 20 74 | 20 61 72 67 20 75 6e 72 |regexp t| arg unr|
|00000ad0| 65 61 64 2d 63 6f 6d 6d | 61 6e 64 2d 65 76 65 6e |ead-comm|and-even|
|00000ae0| 74 73 20 6d 65 73 73 61 | 67 65 20 22 44 6f 6e 65 |ts messa|ge "Done|
|00000af0| 22 5d 20 38 20 22 5c 0a | 52 65 70 6c 61 63 65 20 |"] 8 "\.|Replace |
|00000b00| 73 6f 6d 65 20 6d 61 74 | 63 68 65 73 20 66 6f 72 |some mat|ches for|
|00000b10| 20 52 45 47 45 58 50 20 | 77 69 74 68 20 76 61 72 | REGEXP |with var|
|00000b20| 69 6f 75 73 20 73 74 72 | 69 6e 67 73 2c 20 69 6e |ious str|ings, in|
|00000b30| 20 72 6f 74 61 74 69 6f | 6e 2e 0a 54 68 65 20 73 | rotatio|n..The s|
|00000b40| 65 63 6f 6e 64 20 61 72 | 67 75 6d 65 6e 74 20 54 |econd ar|gument T|
|00000b50| 4f 2d 53 54 52 49 4e 47 | 53 20 63 6f 6e 74 61 69 |O-STRING|S contai|
|00000b60| 6e 73 20 74 68 65 20 72 | 65 70 6c 61 63 65 6d 65 |ns the r|eplaceme|
|00000b70| 6e 74 20 73 74 72 69 6e | 67 73 2c 20 73 65 70 61 |nt strin|gs, sepa|
|00000b80| 72 61 74 65 64 0a 62 79 | 20 73 70 61 63 65 73 2e |rated.by| spaces.|
|00000b90| 20 20 54 68 69 73 20 63 | 6f 6d 6d 61 6e 64 20 77 | This c|ommand w|
|00000ba0| 6f 72 6b 73 20 6c 69 6b | 65 20 60 71 75 65 72 79 |orks lik|e `query|
|00000bb0| 2d 72 65 70 6c 61 63 65 | 2d 72 65 67 65 78 70 27 |-replace|-regexp'|
|00000bc0| 20 65 78 63 65 70 74 0a | 74 68 61 74 20 65 61 63 | except.|that eac|
|00000bd0| 68 20 73 75 63 63 65 73 | 73 69 76 65 20 72 65 70 |h succes|sive rep|
|00000be0| 6c 61 63 65 6d 65 6e 74 | 20 75 73 65 73 20 74 68 |lacement| uses th|
|00000bf0| 65 20 6e 65 78 74 20 73 | 75 63 63 65 73 73 69 76 |e next s|uccessiv|
|00000c00| 65 20 72 65 70 6c 61 63 | 65 6d 65 6e 74 20 73 74 |e replac|ement st|
|00000c10| 72 69 6e 67 2c 0a 77 72 | 61 70 70 69 6e 67 20 61 |ring,.wr|apping a|
|00000c20| 72 6f 75 6e 64 20 66 72 | 6f 6d 20 74 68 65 20 6c |round fr|om the l|
|00000c30| 61 73 74 20 73 75 63 68 | 20 73 74 72 69 6e 67 20 |ast such| string |
|00000c40| 74 6f 20 74 68 65 20 66 | 69 72 73 74 2e 0a 0a 4e |to the f|irst...N|
|00000c50| 6f 6e 2d 69 6e 74 65 72 | 61 63 74 69 76 65 6c 79 |on-inter|actively|
|00000c60| 2c 20 54 4f 2d 53 54 52 | 49 4e 47 53 20 6d 61 79 |, TO-STR|INGS may|
|00000c70| 20 62 65 20 61 20 6c 69 | 73 74 20 6f 66 20 72 65 | be a li|st of re|
|00000c80| 70 6c 61 63 65 6d 65 6e | 74 20 73 74 72 69 6e 67 |placemen|t string|
|00000c90| 73 2e 0a 0a 41 20 70 72 | 65 66 69 78 20 61 72 67 |s...A pr|efix arg|
|00000ca0| 75 6d 65 6e 74 20 4e 20 | 73 61 79 73 20 74 6f 20 |ument N |says to |
|00000cb0| 75 73 65 20 65 61 63 68 | 20 72 65 70 6c 61 63 65 |use each| replace|
|00000cc0| 6d 65 6e 74 20 73 74 72 | 69 6e 67 20 4e 20 74 69 |ment str|ing N ti|
|00000cd0| 6d 65 73 0a 62 65 66 6f | 72 65 20 72 6f 74 61 74 |mes.befo|re rotat|
|00000ce0| 69 6e 67 20 74 6f 20 74 | 68 65 20 6e 65 78 74 2e |ing to t|he next.|
|00000cf0| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 89 |" (byte-|code "..|
|00000d00| 19 1a c3 c4 c0 89 89 c5 | 25 12 c3 c6 c7 5c 6e 5c |........|%....\n\|
|00000d10| 22 c0 89 89 c5 25 11 5c | 6e 09 0e 08 45 2a 87 22 |"....%.\|n...E*."|
|00000d20| 20 5b 6e 69 6c 20 74 6f | 20 66 72 6f 6d 20 72 65 | [nil to| from re|
|00000d30| 61 64 2d 66 72 6f 6d 2d | 6d 69 6e 69 62 75 66 66 |ad-from-|minibuff|
|00000d40| 65 72 20 22 4d 61 70 20 | 71 75 65 72 79 20 72 65 |er "Map |query re|
|00000d50| 70 6c 61 63 65 20 28 72 | 65 67 65 78 70 29 3a 20 |place (r|egexp): |
|00000d60| 22 20 71 75 65 72 79 2d | 72 65 70 6c 61 63 65 2d |" query-|replace-|
|00000d70| 68 69 73 74 6f 72 79 20 | 66 6f 72 6d 61 74 20 22 |history |format "|
|00000d80| 51 75 65 72 79 20 72 65 | 70 6c 61 63 65 20 25 73 |Query re|place %s|
|00000d90| 20 77 69 74 68 20 28 73 | 70 61 63 65 2d 73 65 70 | with (s|pace-sep|
|00000da0| 61 72 61 74 65 64 20 73 | 74 72 69 6e 67 73 29 3a |arated s|trings):|
|00000db0| 20 22 20 63 75 72 72 65 | 6e 74 2d 70 72 65 66 69 | " curre|nt-prefi|
|00000dc0| 78 2d 61 72 67 5d 20 36 | 29 5d 29 0a 28 64 65 66 |x-arg] 6|)]).(def|
|00000dd0| 61 6c 69 61 73 20 27 72 | 65 70 6c 61 63 65 2d 73 |alias 'r|eplace-s|
|00000de0| 74 72 69 6e 67 20 23 5b | 28 66 72 6f 6d 2d 73 74 |tring #[|(from-st|
|00000df0| 72 69 6e 67 20 74 6f 2d | 73 74 72 69 6e 67 20 26 |ring to-|string &|
|00000e00| 6f 70 74 69 6f 6e 61 6c | 20 64 65 6c 69 6d 69 74 |optional| delimit|
|00000e10| 65 64 29 20 22 c0 09 5c | 6e c3 89 5c 66 25 88 0d |ed) "..\|n..\f%..|
|00000e20| 86 0f 00 c6 c7 21 87 22 | 20 5b 70 65 72 66 6f 72 |.....!."| [perfor|
|00000e30| 6d 2d 72 65 70 6c 61 63 | 65 20 66 72 6f 6d 2d 73 |m-replac|e from-s|
|00000e40| 74 72 69 6e 67 20 74 6f | 2d 73 74 72 69 6e 67 20 |tring to|-string |
|00000e50| 6e 69 6c 20 64 65 6c 69 | 6d 69 74 65 64 20 75 6e |nil deli|mited un|
|00000e60| 72 65 61 64 2d 63 6f 6d | 6d 61 6e 64 2d 65 76 65 |read-com|mand-eve|
|00000e70| 6e 74 73 20 6d 65 73 73 | 61 67 65 20 22 44 6f 6e |nts mess|age "Don|
|00000e80| 65 22 5d 20 36 20 22 5c | 0a 52 65 70 6c 61 63 65 |e"] 6 "\|.Replace|
|00000e90| 20 6f 63 63 75 72 72 65 | 6e 63 65 73 20 6f 66 20 | occurre|nces of |
|00000ea0| 46 52 4f 4d 2d 53 54 52 | 49 4e 47 20 77 69 74 68 |FROM-STR|ING with|
|00000eb0| 20 54 4f 2d 53 54 52 49 | 4e 47 2e 0a 50 72 65 73 | TO-STRI|NG..Pres|
|00000ec0| 65 72 76 65 20 63 61 73 | 65 20 69 6e 20 65 61 63 |erve cas|e in eac|
|00000ed0| 68 20 6d 61 74 63 68 20 | 69 66 20 60 63 61 73 65 |h match |if `case|
|00000ee0| 2d 72 65 70 6c 61 63 65 | 27 20 61 6e 64 20 60 63 |-replace|' and `c|
|00000ef0| 61 73 65 2d 66 6f 6c 64 | 2d 73 65 61 72 63 68 27 |ase-fold|-search'|
|00000f00| 0a 61 72 65 20 6e 6f 6e | 2d 6e 69 6c 20 61 6e 64 |.are non|-nil and|
|00000f10| 20 46 52 4f 4d 2d 53 54 | 52 49 4e 47 20 68 61 73 | FROM-ST|RING has|
|00000f20| 20 6e 6f 20 75 70 70 65 | 72 63 61 73 65 20 6c 65 | no uppe|rcase le|
|00000f30| 74 74 65 72 73 2e 0a 54 | 68 69 72 64 20 61 72 67 |tters..T|hird arg|
|00000f40| 20 44 45 4c 49 4d 49 54 | 45 44 20 28 70 72 65 66 | DELIMIT|ED (pref|
|00000f50| 69 78 20 61 72 67 20 69 | 66 20 69 6e 74 65 72 61 |ix arg i|f intera|
|00000f60| 63 74 69 76 65 29 2c 20 | 69 66 20 6e 6f 6e 2d 6e |ctive), |if non-n|
|00000f70| 69 6c 2c 20 6d 65 61 6e | 73 20 72 65 70 6c 61 63 |il, mean|s replac|
|00000f80| 65 0a 6f 6e 6c 79 20 6d | 61 74 63 68 65 73 20 73 |e.only m|atches s|
|00000f90| 75 72 72 6f 75 6e 64 65 | 64 20 62 79 20 77 6f 72 |urrounde|d by wor|
|00000fa0| 64 20 62 6f 75 6e 64 61 | 72 69 65 73 2e 0a 0a 54 |d bounda|ries...T|
|00000fb0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |his func|tion is |
|00000fc0| 75 73 75 61 6c 6c 79 20 | 74 68 65 20 77 72 6f 6e |usually |the wron|
|00000fd0| 67 20 74 68 69 6e 67 20 | 74 6f 20 75 73 65 20 69 |g thing |to use i|
|00000fe0| 6e 20 61 20 4c 69 73 70 | 20 70 72 6f 67 72 61 6d |n a Lisp| program|
|00000ff0| 2e 0a 57 68 61 74 20 79 | 6f 75 20 70 72 6f 62 61 |..What y|ou proba|
|00001000| 62 6c 79 20 77 61 6e 74 | 20 69 73 20 61 20 6c 6f |bly want| is a lo|
|00001010| 6f 70 20 6c 69 6b 65 20 | 74 68 69 73 3a 0a 20 20 |op like |this:. |
|00001020| 28 77 68 69 6c 65 20 28 | 73 65 61 72 63 68 2d 66 |(while (|search-f|
|00001030| 6f 72 77 61 72 64 20 46 | 52 4f 4d 2d 53 54 52 49 |orward F|ROM-STRI|
|00001040| 4e 47 20 6e 69 6c 20 74 | 29 0a 20 20 20 20 28 72 |NG nil t|). (r|
|00001050| 65 70 6c 61 63 65 2d 6d | 61 74 63 68 20 54 4f 2d |eplace-m|atch TO-|
|00001060| 53 54 52 49 4e 47 20 6e | 69 6c 20 74 29 29 0a 77 |STRING n|il t)).w|
|00001070| 68 69 63 68 20 77 69 6c | 6c 20 72 75 6e 20 66 61 |hich wil|l run fa|
|00001080| 73 74 65 72 20 61 6e 64 | 20 77 69 6c 6c 20 6e 6f |ster and| will no|
|00001090| 74 20 73 65 74 20 74 68 | 65 20 6d 61 72 6b 20 6f |t set th|e mark o|
|000010a0| 72 20 70 72 69 6e 74 20 | 61 6e 79 74 68 69 6e 67 |r print |anything|
|000010b0| 2e 22 20 28 71 75 65 72 | 79 2d 72 65 70 6c 61 63 |." (quer|y-replac|
|000010c0| 65 2d 72 65 61 64 2d 61 | 72 67 73 20 22 52 65 70 |e-read-a|rgs "Rep|
|000010d0| 6c 61 63 65 20 73 74 72 | 69 6e 67 22 29 5d 29 0a |lace str|ing")]).|
|000010e0| 28 64 65 66 61 6c 69 61 | 73 20 27 72 65 70 6c 61 |(defalia|s 'repla|
|000010f0| 63 65 2d 72 65 67 65 78 | 70 20 23 5b 28 72 65 67 |ce-regex|p #[(reg|
|00001100| 65 78 70 20 74 6f 2d 73 | 74 72 69 6e 67 20 26 6f |exp to-s|tring &o|
|00001110| 70 74 69 6f 6e 61 6c 20 | 64 65 6c 69 6d 69 74 65 |ptional |delimite|
|00001120| 64 29 20 22 c0 09 5c 6e | c3 c4 0d 25 88 0e 06 86 |d) "..\n|...%....|
|00001130| 10 00 c7 c8 21 87 22 20 | 5b 70 65 72 66 6f 72 6d |....!." |[perform|
|00001140| 2d 72 65 70 6c 61 63 65 | 20 72 65 67 65 78 70 20 |-replace| regexp |
|00001150| 74 6f 2d 73 74 72 69 6e | 67 20 6e 69 6c 20 74 20 |to-strin|g nil t |
|00001160| 64 65 6c 69 6d 69 74 65 | 64 20 75 6e 72 65 61 64 |delimite|d unread|
|00001170| 2d 63 6f 6d 6d 61 6e 64 | 2d 65 76 65 6e 74 73 20 |-command|-events |
|00001180| 6d 65 73 73 61 67 65 20 | 22 44 6f 6e 65 22 5d 20 |message |"Done"] |
|00001190| 36 20 22 5c 0a 52 65 70 | 6c 61 63 65 20 74 68 69 |6 "\.Rep|lace thi|
|000011a0| 6e 67 73 20 61 66 74 65 | 72 20 70 6f 69 6e 74 20 |ngs afte|r point |
|000011b0| 6d 61 74 63 68 69 6e 67 | 20 52 45 47 45 58 50 20 |matching| REGEXP |
|000011c0| 77 69 74 68 20 54 4f 2d | 53 54 52 49 4e 47 2e 0a |with TO-|STRING..|
|000011d0| 50 72 65 73 65 72 76 65 | 20 63 61 73 65 20 69 6e |Preserve| case in|
|000011e0| 20 65 61 63 68 20 6d 61 | 74 63 68 20 69 66 20 60 | each ma|tch if `|
|000011f0| 63 61 73 65 2d 72 65 70 | 6c 61 63 65 27 20 61 6e |case-rep|lace' an|
|00001200| 64 20 60 63 61 73 65 2d | 66 6f 6c 64 2d 73 65 61 |d `case-|fold-sea|
|00001210| 72 63 68 27 0a 61 72 65 | 20 6e 6f 6e 2d 6e 69 6c |rch'.are| non-nil|
|00001220| 20 61 6e 64 20 52 45 47 | 45 58 50 20 68 61 73 20 | and REG|EXP has |
|00001230| 6e 6f 20 75 70 70 65 72 | 63 61 73 65 20 6c 65 74 |no upper|case let|
|00001240| 74 65 72 73 2e 0a 54 68 | 69 72 64 20 61 72 67 20 |ters..Th|ird arg |
|00001250| 44 45 4c 49 4d 49 54 45 | 44 20 28 70 72 65 66 69 |DELIMITE|D (prefi|
|00001260| 78 20 61 72 67 20 69 66 | 20 69 6e 74 65 72 61 63 |x arg if| interac|
|00001270| 74 69 76 65 29 2c 20 69 | 66 20 6e 6f 6e 2d 6e 69 |tive), i|f non-ni|
|00001280| 6c 2c 20 6d 65 61 6e 73 | 20 72 65 70 6c 61 63 65 |l, means| replace|
|00001290| 0a 6f 6e 6c 79 20 6d 61 | 74 63 68 65 73 20 73 75 |.only ma|tches su|
|000012a0| 72 72 6f 75 6e 64 65 64 | 20 62 79 20 77 6f 72 64 |rrounded| by word|
|000012b0| 20 62 6f 75 6e 64 61 72 | 69 65 73 2e 0a 49 6e 20 | boundar|ies..In |
|000012c0| 54 4f 2d 53 54 52 49 4e | 47 2c 20 60 5c 5c 26 27 |TO-STRIN|G, `\\&'|
|000012d0| 20 73 74 61 6e 64 73 20 | 66 6f 72 20 77 68 61 74 | stands |for what|
|000012e0| 65 76 65 72 20 6d 61 74 | 63 68 65 64 20 74 68 65 |ever mat|ched the|
|000012f0| 20 77 68 6f 6c 65 20 6f | 66 20 52 45 47 45 58 50 | whole o|f REGEXP|
|00001300| 2c 0a 61 6e 64 20 60 5c | 5c 3d 5c 5c 4e 27 20 28 |,.and `\|\=\\N' (|
|00001310| 77 68 65 72 65 20 4e 20 | 69 73 20 61 20 64 69 67 |where N |is a dig|
|00001320| 69 74 29 20 73 74 61 6e | 64 73 20 66 6f 72 0a 20 |it) stan|ds for. |
|00001330| 77 68 61 74 65 76 65 72 | 20 77 68 61 74 20 6d 61 |whatever| what ma|
|00001340| 74 63 68 65 64 20 74 68 | 65 20 4e 74 68 20 60 5c |tched th|e Nth `\|
|00001350| 5c 28 2e 2e 2e 5c 5c 29 | 27 20 69 6e 20 52 45 47 |\(...\\)|' in REG|
|00001360| 45 58 50 2e 0a 0a 54 68 | 69 73 20 66 75 6e 63 74 |EXP...Th|is funct|
|00001370| 69 6f 6e 20 69 73 20 75 | 73 75 61 6c 6c 79 20 74 |ion is u|sually t|
|00001380| 68 65 20 77 72 6f 6e 67 | 20 74 68 69 6e 67 20 74 |he wrong| thing t|
|00001390| 6f 20 75 73 65 20 69 6e | 20 61 20 4c 69 73 70 20 |o use in| a Lisp |
|000013a0| 70 72 6f 67 72 61 6d 2e | 0a 57 68 61 74 20 79 6f |program.|.What yo|
|000013b0| 75 20 70 72 6f 62 61 62 | 6c 79 20 77 61 6e 74 20 |u probab|ly want |
|000013c0| 69 73 20 61 20 6c 6f 6f | 70 20 6c 69 6b 65 20 74 |is a loo|p like t|
|000013d0| 68 69 73 3a 0a 20 20 28 | 77 68 69 6c 65 20 28 72 |his:. (|while (r|
|000013e0| 65 2d 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |e-search|-forward|
|000013f0| 20 52 45 47 45 58 50 20 | 6e 69 6c 20 74 29 0a 20 | REGEXP |nil t). |
|00001400| 20 20 20 28 72 65 70 6c | 61 63 65 2d 6d 61 74 63 | (repl|ace-matc|
|00001410| 68 20 54 4f 2d 53 54 52 | 49 4e 47 20 6e 69 6c 20 |h TO-STR|ING nil |
|00001420| 6e 69 6c 29 29 0a 77 68 | 69 63 68 20 77 69 6c 6c |nil)).wh|ich will|
|00001430| 20 72 75 6e 20 66 61 73 | 74 65 72 20 61 6e 64 20 | run fas|ter and |
|00001440| 77 69 6c 6c 20 6e 6f 74 | 20 73 65 74 20 74 68 65 |will not| set the|
|00001450| 20 6d 61 72 6b 20 6f 72 | 20 70 72 69 6e 74 20 61 | mark or| print a|
|00001460| 6e 79 74 68 69 6e 67 2e | 22 20 28 71 75 65 72 79 |nything.|" (query|
|00001470| 2d 72 65 70 6c 61 63 65 | 2d 72 65 61 64 2d 61 72 |-replace|-read-ar|
|00001480| 67 73 20 22 52 65 70 6c | 61 63 65 20 72 65 67 65 |gs "Repl|ace rege|
|00001490| 78 70 22 29 5d 29 0a 28 | 64 65 66 76 61 72 20 72 |xp")]).(|defvar r|
|000014a0| 65 67 65 78 70 2d 68 69 | 73 74 6f 72 79 20 6e 69 |egexp-hi|story ni|
|000014b0| 6c 20 22 5c 0a 48 69 73 | 74 6f 72 79 20 6c 69 73 |l "\.His|tory lis|
|000014c0| 74 20 66 6f 72 20 73 6f | 6d 65 20 63 6f 6d 6d 61 |t for so|me comma|
|000014d0| 6e 64 73 20 74 68 61 74 | 20 72 65 61 64 20 72 65 |nds that| read re|
|000014e0| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|000014f0| 73 2e 22 29 0a 28 64 65 | 66 61 6c 69 61 73 20 28 |s.").(de|falias (|
|00001500| 71 75 6f 74 65 20 64 65 | 6c 65 74 65 2d 6e 6f 6e |quote de|lete-non|
|00001510| 2d 6d 61 74 63 68 69 6e | 67 2d 6c 69 6e 65 73 29 |-matchin|g-lines)|
|00001520| 20 28 71 75 6f 74 65 20 | 6b 65 65 70 2d 6c 69 6e | (quote |keep-lin|
|00001530| 65 73 29 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |es)).(de|falias '|
|00001540| 6b 65 65 70 2d 6c 69 6e | 65 73 20 23 5b 28 72 65 |keep-lin|es #[(re|
|00001550| 67 65 78 70 29 20 22 8a | 6e 84 08 00 c0 79 88 60 |gexp) ".|n....y.`|
|00001560| 19 6d 3f 85 50 00 c2 0b | c4 c5 23 84 1e 00 09 64 |.m?.P...|..#....d|
|00001570| 7c 88 82 37 00 8a c6 94 | 62 88 c6 79 88 60 29 1e ||..7....|b..y.`).|
|00001580| 07 09 0e 07 57 83 36 00 | 09 0e 07 7c 88 29 8a c0 |....W.6.|...|.)..|
|00001590| 79 88 60 29 11 6d 84 5c | 6e 00 c6 94 c6 95 55 83 |y.`).m.\|n.....U.|
|000015a0| 5c 6e 00 c0 75 88 82 5c | 6e 00 2a 87 22 20 5b 31 |\n..u..\|n.*." [1|
|000015b0| 20 73 74 61 72 74 20 72 | 65 2d 73 65 61 72 63 68 | start r|e-search|
|000015c0| 2d 66 6f 72 77 61 72 64 | 20 72 65 67 65 78 70 20 |-forward| regexp |
|000015d0| 6e 69 6c 20 6d 6f 76 65 | 20 30 20 65 6e 64 5d 20 |nil move| 0 end] |
|000015e0| 34 20 22 5c 0a 44 65 6c | 65 74 65 20 61 6c 6c 20 |4 "\.Del|ete all |
|000015f0| 6c 69 6e 65 73 20 65 78 | 63 65 70 74 20 74 68 6f |lines ex|cept tho|
|00001600| 73 65 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 6d 61 |se conta|ining ma|
|00001610| 74 63 68 65 73 20 66 6f | 72 20 52 45 47 45 58 50 |tches fo|r REGEXP|
|00001620| 2e 0a 41 20 6d 61 74 63 | 68 20 73 70 6c 69 74 20 |..A matc|h split |
|00001630| 61 63 72 6f 73 73 20 6c | 69 6e 65 73 20 70 72 65 |across l|ines pre|
|00001640| 73 65 72 76 65 73 20 61 | 6c 6c 20 74 68 65 20 6c |serves a|ll the l|
|00001650| 69 6e 65 73 20 69 74 20 | 6c 69 65 73 20 69 6e 2e |ines it |lies in.|
|00001660| 0a 41 70 70 6c 69 65 73 | 20 74 6f 20 61 6c 6c 20 |.Applies| to all |
|00001670| 6c 69 6e 65 73 20 61 66 | 74 65 72 20 70 6f 69 6e |lines af|ter poin|
|00001680| 74 2e 22 20 28 6c 69 73 | 74 20 28 72 65 61 64 2d |t." (lis|t (read-|
|00001690| 66 72 6f 6d 2d 6d 69 6e | 69 62 75 66 66 65 72 20 |from-min|ibuffer |
|000016a0| 22 4b 65 65 70 20 6c 69 | 6e 65 73 20 28 63 6f 6e |"Keep li|nes (con|
|000016b0| 74 61 69 6e 69 6e 67 20 | 6d 61 74 63 68 20 66 6f |taining |match fo|
|000016c0| 72 20 72 65 67 65 78 70 | 29 3a 20 22 20 6e 69 6c |r regexp|): " nil|
|000016d0| 20 6e 69 6c 20 6e 69 6c | 20 28 71 75 6f 74 65 20 | nil nil| (quote |
|000016e0| 72 65 67 65 78 70 2d 68 | 69 73 74 6f 72 79 29 29 |regexp-h|istory))|
|000016f0| 29 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 28 71 |)]).(def|alias (q|
|00001700| 75 6f 74 65 20 64 65 6c | 65 74 65 2d 6d 61 74 63 |uote del|ete-matc|
|00001710| 68 69 6e 67 2d 6c 69 6e | 65 73 29 20 28 71 75 6f |hing-lin|es) (quo|
|00001720| 74 65 20 66 6c 75 73 68 | 2d 6c 69 6e 65 73 29 29 |te flush|-lines))|
|00001730| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 66 6c 75 73 |.(defali|as 'flus|
|00001740| 68 2d 6c 69 6e 65 73 20 | 23 5b 28 72 65 67 65 78 |h-lines |#[(regex|
|00001750| 70 29 20 22 8a 6d 3f 85 | 21 00 c0 09 c2 c3 23 85 |p) ".m?.|!.....#.|
|00001760| 21 00 8a c4 94 62 88 c4 | 79 88 60 29 c5 79 88 60 |!....b..|y.`).y.`|
|00001770| 7c 88 82 01 00 29 87 22 | 20 5b 72 65 2d 73 65 61 ||....)."| [re-sea|
|00001780| 72 63 68 2d 66 6f 72 77 | 61 72 64 20 72 65 67 65 |rch-forw|ard rege|
|00001790| 78 70 20 6e 69 6c 20 74 | 20 30 20 31 5d 20 34 20 |xp nil t| 0 1] 4 |
|000017a0| 22 5c 0a 44 65 6c 65 74 | 65 20 6c 69 6e 65 73 20 |"\.Delet|e lines |
|000017b0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 6d 61 74 63 68 |containi|ng match|
|000017c0| 65 73 20 66 6f 72 20 52 | 45 47 45 58 50 2e 0a 49 |es for R|EGEXP..I|
|000017d0| 66 20 61 20 6d 61 74 63 | 68 20 69 73 20 73 70 6c |f a matc|h is spl|
|000017e0| 69 74 20 61 63 72 6f 73 | 73 20 6c 69 6e 65 73 2c |it acros|s lines,|
|000017f0| 20 61 6c 6c 20 74 68 65 | 20 6c 69 6e 65 73 20 69 | all the| lines i|
|00001800| 74 20 6c 69 65 73 20 69 | 6e 20 61 72 65 20 64 65 |t lies i|n are de|
|00001810| 6c 65 74 65 64 2e 0a 41 | 70 70 6c 69 65 73 20 74 |leted..A|pplies t|
|00001820| 6f 20 6c 69 6e 65 73 20 | 61 66 74 65 72 20 70 6f |o lines |after po|
|00001830| 69 6e 74 2e 22 20 28 6c | 69 73 74 20 28 72 65 61 |int." (l|ist (rea|
|00001840| 64 2d 66 72 6f 6d 2d 6d | 69 6e 69 62 75 66 66 65 |d-from-m|inibuffe|
|00001850| 72 20 22 46 6c 75 73 68 | 20 6c 69 6e 65 73 20 28 |r "Flush| lines (|
|00001860| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 6d 61 74 63 68 |containi|ng match|
|00001870| 20 66 6f 72 20 72 65 67 | 65 78 70 29 3a 20 22 20 | for reg|exp): " |
|00001880| 6e 69 6c 20 6e 69 6c 20 | 6e 69 6c 20 28 71 75 6f |nil nil |nil (quo|
|00001890| 74 65 20 72 65 67 65 78 | 70 2d 68 69 73 74 6f 72 |te regex|p-histor|
|000018a0| 79 29 29 29 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |y)))]).(|defalias|
|000018b0| 20 28 71 75 6f 74 65 20 | 63 6f 75 6e 74 2d 6d 61 | (quote |count-ma|
|000018c0| 74 63 68 65 73 29 20 28 | 71 75 6f 74 65 20 68 6f |tches) (|quote ho|
|000018d0| 77 2d 6d 61 6e 79 29 29 | 0a 28 64 65 66 61 6c 69 |w-many))|.(defali|
|000018e0| 61 73 20 27 68 6f 77 2d | 6d 61 6e 79 20 23 5b 28 |as 'how-|many #[(|
|000018f0| 72 65 67 65 78 70 29 20 | 22 c0 c1 1a 1b 8a 6d 84 |regexp) |".....m.|
|00001900| 25 00 60 12 c4 0d c1 c6 | 23 83 25 00 5c 6e 60 55 |%.`.....|#.%.\n`U|
|00001910| 83 1f 00 c7 75 88 82 05 | 00 0b 54 13 82 05 00 c8 |....u...|..T.....|
|00001920| c9 0b 5c 22 2b 87 22 20 | 5b 30 20 6e 69 6c 20 6f |..\"+." |[0 nil o|
|00001930| 70 6f 69 6e 74 20 63 6f | 75 6e 74 20 72 65 2d 73 |point co|unt re-s|
|00001940| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 72 65 |earch-fo|rward re|
|00001950| 67 65 78 70 20 74 20 31 | 20 6d 65 73 73 61 67 65 |gexp t 1| message|
|00001960| 20 22 25 64 20 6f 63 63 | 75 72 72 65 6e 63 65 73 | "%d occ|urrences|
|00001970| 22 5d 20 34 20 22 5c 0a | 50 72 69 6e 74 20 6e 75 |"] 4 "\.|Print nu|
|00001980| 6d 62 65 72 20 6f 66 20 | 6d 61 74 63 68 65 73 20 |mber of |matches |
|00001990| 66 6f 72 20 52 45 47 45 | 58 50 20 66 6f 6c 6c 6f |for REGE|XP follo|
|000019a0| 77 69 6e 67 20 70 6f 69 | 6e 74 2e 22 20 28 6c 69 |wing poi|nt." (li|
|000019b0| 73 74 20 28 72 65 61 64 | 2d 66 72 6f 6d 2d 6d 69 |st (read|-from-mi|
|000019c0| 6e 69 62 75 66 66 65 72 | 20 22 48 6f 77 20 6d 61 |nibuffer| "How ma|
|000019d0| 6e 79 20 6d 61 74 63 68 | 65 73 20 66 6f 72 20 28 |ny match|es for (|
|000019e0| 72 65 67 65 78 70 29 3a | 20 22 20 6e 69 6c 20 6e |regexp):| " nil n|
|000019f0| 69 6c 20 6e 69 6c 20 28 | 71 75 6f 74 65 20 72 65 |il nil (|quote re|
|00001a00| 67 65 78 70 2d 68 69 73 | 74 6f 72 79 29 29 29 5d |gexp-his|tory)))]|
|00001a10| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|00001a20| 21 84 08 00 c2 11 09 84 | 1b 00 c3 20 11 c4 09 c5 |!.......|... ....|
|00001a30| c6 23 88 c4 09 c7 c8 23 | 88 c0 c9 21 84 24 00 c2 |.#.....#|...!.$..|
|00001a40| 16 09 c0 ca 21 84 2d 00 | c2 16 5c 6e c0 cb 21 84 |....!.-.|..\n..!.|
|00001a50| 36 00 c2 16 0b c2 87 22 | 20 5b 62 6f 75 6e 64 70 |6......"| [boundp|
|00001a60| 20 6f 63 63 75 72 2d 6d | 6f 64 65 2d 6d 61 70 20 | occur-m|ode-map |
|00001a70| 6e 69 6c 20 6d 61 6b 65 | 2d 73 70 61 72 73 65 2d |nil make|-sparse-|
|00001a80| 6b 65 79 6d 61 70 20 64 | 65 66 69 6e 65 2d 6b 65 |keymap d|efine-ke|
|00001a90| 79 20 5b 6d 6f 75 73 65 | 2d 32 5d 20 6f 63 63 75 |y [mouse|-2] occu|
|00001aa0| 72 2d 6d 6f 64 65 2d 6d | 6f 75 73 65 2d 67 6f 74 |r-mode-m|ouse-got|
|00001ab0| 6f 20 22 03 03 22 20 6f | 63 63 75 72 2d 6d 6f 64 |o ".." o|ccur-mod|
|00001ac0| 65 2d 67 6f 74 6f 2d 6f | 63 63 75 72 72 65 6e 63 |e-goto-o|ccurrenc|
|00001ad0| 65 20 6f 63 63 75 72 2d | 62 75 66 66 65 72 20 6f |e occur-|buffer o|
|00001ae0| 63 63 75 72 2d 6e 6c 69 | 6e 65 73 20 6f 63 63 75 |ccur-nli|nes occu|
|00001af0| 72 2d 70 6f 73 2d 6c 69 | 73 74 5d 20 34 29 0a 28 |r-pos-li|st] 4).(|
|00001b00| 64 65 66 61 6c 69 61 73 | 20 27 6f 63 63 75 72 2d |defalias| 'occur-|
|00001b10| 6d 6f 64 65 20 23 5b 6e | 69 6c 20 22 c0 20 88 c1 |mode #[n|il ". ..|
|00001b20| 5c 6e 21 88 c3 14 c5 16 | 06 c7 c8 21 88 c7 c9 21 |\n!.....|...!...!|
|00001b30| 88 c7 ca 21 88 cb cc 21 | 87 22 20 5b 6b 69 6c 6c |...!...!|." [kill|
|00001b40| 2d 61 6c 6c 2d 6c 6f 63 | 61 6c 2d 76 61 72 69 61 |-all-loc|al-varia|
|00001b50| 62 6c 65 73 20 75 73 65 | 2d 6c 6f 63 61 6c 2d 6d |bles use|-local-m|
|00001b60| 61 70 20 6f 63 63 75 72 | 2d 6d 6f 64 65 2d 6d 61 |ap occur|-mode-ma|
|00001b70| 70 20 6f 63 63 75 72 2d | 6d 6f 64 65 20 6d 61 6a |p occur-|mode maj|
|00001b80| 6f 72 2d 6d 6f 64 65 20 | 22 4f 63 63 75 72 22 20 |or-mode |"Occur" |
|00001b90| 6d 6f 64 65 2d 6e 61 6d | 65 20 6d 61 6b 65 2d 6c |mode-nam|e make-l|
|00001ba0| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 20 6f 63 |ocal-var|iable oc|
|00001bb0| 63 75 72 2d 62 75 66 66 | 65 72 20 6f 63 63 75 72 |cur-buff|er occur|
|00001bc0| 2d 6e 6c 69 6e 65 73 20 | 6f 63 63 75 72 2d 70 6f |-nlines |occur-po|
|00001bd0| 73 2d 6c 69 73 74 20 72 | 75 6e 2d 68 6f 6f 6b 73 |s-list r|un-hooks|
|00001be0| 20 6f 63 63 75 72 2d 6d | 6f 64 65 2d 68 6f 6f 6b | occur-m|ode-hook|
|00001bf0| 5d 20 32 20 22 5c 0a 4d | 61 6a 6f 72 20 6d 6f 64 |] 2 "\.M|ajor mod|
|00001c00| 65 20 66 6f 72 20 6f 75 | 74 70 75 74 20 66 72 6f |e for ou|tput fro|
|00001c10| 6d 20 5c 5c 5b 6f 63 63 | 75 72 5d 2e 0a 4d 6f 76 |m \\[occ|ur]..Mov|
|00001c20| 65 20 70 6f 69 6e 74 20 | 74 6f 20 6f 6e 65 20 6f |e point |to one o|
|00001c30| 66 20 74 68 65 20 6f 63 | 63 75 72 72 65 6e 63 65 |f the oc|currence|
|00001c40| 73 20 69 6e 20 74 68 69 | 73 20 62 75 66 66 65 72 |s in thi|s buffer|
|00001c50| 2c 0a 74 68 65 6e 20 75 | 73 65 20 5c 5c 5b 6f 63 |,.then u|se \\[oc|
|00001c60| 63 75 72 2d 6d 6f 64 65 | 2d 67 6f 74 6f 2d 6f 63 |cur-mode|-goto-oc|
|00001c70| 63 75 72 72 65 6e 63 65 | 5d 20 74 6f 20 67 6f 20 |currence|] to go |
|00001c80| 74 6f 20 74 68 65 20 73 | 61 6d 65 20 6f 63 63 75 |to the s|ame occu|
|00001c90| 72 72 65 6e 63 65 0a 69 | 6e 20 74 68 65 20 62 75 |rrence.i|n the bu|
|00001ca0| 66 66 65 72 20 74 68 61 | 74 20 74 68 65 20 6f 63 |ffer tha|t the oc|
|00001cb0| 63 75 72 72 65 6e 63 65 | 73 20 77 65 72 65 20 66 |currence|s were f|
|00001cc0| 6f 75 6e 64 20 69 6e 2e | 0a 4f 72 20 63 6c 69 63 |ound in.|.Or clic|
|00001cd0| 6b 20 5c 5c 3c 6f 63 63 | 75 72 2d 6d 6f 64 65 2d |k \\<occ|ur-mode-|
|00001ce0| 6d 61 70 3e 5c 5c 5b 6f | 63 63 75 72 2d 6d 6f 64 |map>\\[o|ccur-mod|
|00001cf0| 65 2d 6d 6f 75 73 65 2d | 67 6f 74 6f 5d 20 6f 6e |e-mouse-|goto] on|
|00001d00| 20 61 6e 20 6f 63 63 75 | 72 72 65 6e 63 65 20 6c | an occu|rrence l|
|00001d10| 69 6e 65 2e 0a 5c 5c 7b | 6f 63 63 75 72 2d 6d 6f |ine..\\{|occur-mo|
|00001d20| 64 65 2d 6d 61 70 7d 22 | 5d 29 0a 28 64 65 66 61 |de-map}"|]).(defa|
|00001d30| 6c 69 61 73 20 27 6f 63 | 63 75 72 2d 6d 6f 64 65 |lias 'oc|cur-mode|
|00001d40| 2d 6d 6f 75 73 65 2d 67 | 6f 74 6f 20 23 5b 28 65 |-mouse-g|oto #[(e|
|00001d50| 76 65 6e 74 29 20 22 c0 | 89 19 1a 8a c3 5c 66 1c |vent) ".|.....\f.|
|00001d60| c5 5c 66 38 3a 83 13 00 | c5 82 14 00 c6 5c 66 38 |.\f8:...|.....\f8|
|00001d70| 29 89 1e 07 40 29 21 71 | 88 8a 5c 66 1c c5 5c 66 |)...@)!q|..\f..\f|
|00001d80| 38 3a 83 2d 00 c5 82 2e | 00 c6 5c 66 38 29 89 1e |8:.-....|..\f8)..|
|00001d90| 07 41 40 3a 83 42 00 0e | 07 41 40 40 82 46 00 0e |.A@:.B..|.A@@.F..|
|00001da0| 07 41 40 29 62 88 c8 20 | 11 0e 09 12 2a ca 5c 6e |.A@)b.. |....*.\n|
|00001db0| 21 88 cb 09 21 62 2a 87 | 22 20 5b 6e 69 6c 20 70 |!...!b*.|" [nil p|
|00001dc0| 6f 73 20 62 75 66 66 65 | 72 20 77 69 6e 64 6f 77 |os buffe|r window|
|00001dd0| 2d 62 75 66 66 65 72 20 | 65 76 65 6e 74 20 32 20 |-buffer |event 2 |
|00001de0| 31 20 70 6f 73 69 74 69 | 6f 6e 20 6f 63 63 75 72 |1 positi|on occur|
|00001df0| 2d 6d 6f 64 65 2d 66 69 | 6e 64 2d 6f 63 63 75 72 |-mode-fi|nd-occur|
|00001e00| 72 65 6e 63 65 20 6f 63 | 63 75 72 2d 62 75 66 66 |rence oc|cur-buff|
|00001e10| 65 72 20 70 6f 70 2d 74 | 6f 2d 62 75 66 66 65 72 |er pop-t|o-buffer|
|00001e20| 20 6d 61 72 6b 65 72 2d | 70 6f 73 69 74 69 6f 6e | marker-|position|
|00001e30| 5d 20 34 20 22 5c 0a 49 | 6e 20 4f 63 63 75 72 20 |] 4 "\.I|n Occur |
|00001e40| 6d 6f 64 65 2c 20 67 6f | 20 74 6f 20 74 68 65 20 |mode, go| to the |
|00001e50| 6f 63 63 75 72 72 65 6e | 63 65 20 77 68 6f 73 65 |occurren|ce whose|
|00001e60| 20 6c 69 6e 65 20 79 6f | 75 20 63 6c 69 63 6b 20 | line yo|u click |
|00001e70| 6f 6e 2e 22 20 22 65 22 | 5d 29 0a 28 64 65 66 61 |on." "e"|]).(defa|
|00001e80| 6c 69 61 73 20 28 71 75 | 6f 74 65 20 6f 63 63 75 |lias (qu|ote occu|
|00001e90| 72 2d 6d 6f 64 65 2d 66 | 69 6e 64 2d 6f 63 63 75 |r-mode-f|ind-occu|
|00001ea0| 72 72 65 6e 63 65 29 20 | 23 5b 6e 69 6c 20 22 08 |rrence) |#[nil ".|
|00001eb0| 83 5c 6e 00 c1 08 21 84 | 12 00 c2 10 c2 13 c4 c5 |.\n...!.|........|
|00001ec0| 21 88 c6 65 8a c7 79 88 | 60 29 5c 22 1e 08 8a c7 |!..e..y.|`)\"....|
|00001ed0| 79 88 0e 08 53 0e 09 c7 | 57 83 32 00 ca 0e 09 5a |y...S...|W.2....Z|
|00001ee0| 82 43 00 0e 09 c7 56 83 | 42 00 0e 09 89 5c 5c ca |.C....V.|B....\\.|
|00001ef0| 5c 5c 82 43 00 cb a5 29 | 89 1e 5c 66 0b 38 1e 0d |\\.C...)|..\f.8..|
|00001f00| 0e 08 cb 57 83 57 00 c4 | ce 21 88 0e 0d 84 60 00 |...W.W..|.!....`.|
|00001f10| c4 ce 21 88 0e 0d 2b 87 | 22 20 5b 6f 63 63 75 72 |..!...+.|" [occur|
|00001f20| 2d 62 75 66 66 65 72 20 | 62 75 66 66 65 72 2d 6e |-buffer |buffer-n|
|00001f30| 61 6d 65 20 6e 69 6c 20 | 6f 63 63 75 72 2d 70 6f |ame nil |occur-po|
|00001f40| 73 2d 6c 69 73 74 20 65 | 72 72 6f 72 20 22 42 75 |s-list e|rror "Bu|
|00001f50| 66 66 65 72 20 69 6e 20 | 77 68 69 63 68 20 6f 63 |ffer in |which oc|
|00001f60| 63 75 72 72 65 6e 63 65 | 73 20 77 65 72 65 20 66 |currence|s were f|
|00001f70| 6f 75 6e 64 20 69 73 20 | 64 65 6c 65 74 65 64 22 |ound is |deleted"|
|00001f80| 20 63 6f 75 6e 74 2d 6c | 69 6e 65 73 20 30 20 6c | count-l|ines 0 l|
|00001f90| 69 6e 65 2d 63 6f 75 6e | 74 20 6f 63 63 75 72 2d |ine-coun|t occur-|
|00001fa0| 6e 6c 69 6e 65 73 20 32 | 20 31 20 6f 63 63 75 72 |nlines 2| 1 occur|
|00001fb0| 2d 6e 75 6d 62 65 72 20 | 70 6f 73 20 22 4e 6f 20 |-number |pos "No |
|00001fc0| 6f 63 63 75 72 72 65 6e | 63 65 20 6f 6e 20 74 68 |occurren|ce on th|
|00001fd0| 69 73 20 6c 69 6e 65 22 | 5d 20 34 5d 29 0a 28 64 |is line"|] 4]).(d|
|00001fe0| 65 66 61 6c 69 61 73 20 | 27 6f 63 63 75 72 2d 6d |efalias |'occur-m|
|00001ff0| 6f 64 65 2d 67 6f 74 6f | 2d 6f 63 63 75 72 72 65 |ode-goto|-occurre|
|00002000| 6e 63 65 20 23 5b 6e 69 | 6c 20 22 c0 20 19 c2 0b |nce #[ni|l ". ...|
|00002010| 21 88 c4 09 21 62 29 87 | 22 20 5b 6f 63 63 75 72 |!...!b).|" [occur|
|00002020| 2d 6d 6f 64 65 2d 66 69 | 6e 64 2d 6f 63 63 75 72 |-mode-fi|nd-occur|
|00002030| 72 65 6e 63 65 20 70 6f | 73 20 70 6f 70 2d 74 6f |rence po|s pop-to|
|00002040| 2d 62 75 66 66 65 72 20 | 6f 63 63 75 72 2d 62 75 |-buffer |occur-bu|
|00002050| 66 66 65 72 20 6d 61 72 | 6b 65 72 2d 70 6f 73 69 |ffer mar|ker-posi|
|00002060| 74 69 6f 6e 5d 20 32 20 | 22 5c 0a 47 6f 20 74 6f |tion] 2 |"\.Go to|
|00002070| 20 74 68 65 20 6f 63 63 | 75 72 72 65 6e 63 65 20 | the occ|urrence |
|00002080| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 69 6e 65 |the curr|ent line|
|00002090| 20 64 65 73 63 72 69 62 | 65 73 2e 22 20 6e 69 6c | describ|es." nil|
|000020a0| 5d 29 0a 28 64 65 66 76 | 61 72 20 6c 69 73 74 2d |]).(defv|ar list-|
|000020b0| 6d 61 74 63 68 69 6e 67 | 2d 6c 69 6e 65 73 2d 64 |matching|-lines-d|
|000020c0| 65 66 61 75 6c 74 2d 63 | 6f 6e 74 65 78 74 2d 6c |efault-c|ontext-l|
|000020d0| 69 6e 65 73 20 30 20 22 | 5c 0a 2a 44 65 66 61 75 |ines 0 "|\.*Defau|
|000020e0| 6c 74 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 6f 6e |lt numbe|r of con|
|000020f0| 74 65 78 74 20 6c 69 6e | 65 73 20 74 6f 20 69 6e |text lin|es to in|
|00002100| 63 6c 75 64 65 20 61 72 | 6f 75 6e 64 20 61 20 60 |clude ar|ound a `|
|00002110| 6c 69 73 74 2d 6d 61 74 | 63 68 69 6e 67 2d 6c 69 |list-mat|ching-li|
|00002120| 6e 65 73 27 0a 6d 61 74 | 63 68 2e 20 20 41 20 6e |nes'.mat|ch. A n|
|00002130| 65 67 61 74 69 76 65 20 | 6e 75 6d 62 65 72 20 6d |egative |number m|
|00002140| 65 61 6e 73 20 74 6f 20 | 69 6e 63 6c 75 64 65 20 |eans to |include |
|00002150| 74 68 61 74 20 6d 61 6e | 79 20 6c 69 6e 65 73 20 |that man|y lines |
|00002160| 62 65 66 6f 72 65 20 74 | 68 65 20 6d 61 74 63 68 |before t|he match|
|00002170| 2e 0a 41 20 70 6f 73 69 | 74 69 76 65 20 6e 75 6d |..A posi|tive num|
|00002180| 62 65 72 20 6d 65 61 6e | 73 20 74 6f 20 69 6e 63 |ber mean|s to inc|
|00002190| 6c 75 64 65 20 74 68 61 | 74 20 6d 61 6e 79 20 6c |lude tha|t many l|
|000021a0| 69 6e 65 73 20 62 6f 74 | 68 20 62 65 66 6f 72 65 |ines bot|h before|
|000021b0| 20 61 6e 64 20 61 66 74 | 65 72 2e 22 29 0a 28 64 | and aft|er.").(d|
|000021c0| 65 66 61 6c 69 61 73 20 | 28 71 75 6f 74 65 20 6c |efalias |(quote l|
|000021d0| 69 73 74 2d 6d 61 74 63 | 68 69 6e 67 2d 6c 69 6e |ist-matc|hing-lin|
|000021e0| 65 73 29 20 28 71 75 6f | 74 65 20 6f 63 63 75 72 |es) (quo|te occur|
|000021f0| 29 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 6f 63 |)).(defa|lias 'oc|
|00002200| 63 75 72 20 23 5b 28 72 | 65 67 65 78 70 20 26 6f |cur #[(r|egexp &o|
|00002210| 70 74 69 6f 6e 61 6c 20 | 6e 6c 69 6e 65 73 29 20 |ptional |nlines) |
|00002220| 22 08 83 5c 6e 00 c1 08 | 21 82 0b 00 5c 6e 10 c3 |"..\n...|!...\n..|
|00002230| 70 c4 65 c5 20 1e 06 1e | 07 1e 08 1e 09 1e 5c 6e |p.e. ...|......\n|
|00002240| cb 90 8a 0e 5c 66 71 88 | cd 63 88 ce 0e 0f 21 88 |....\fq.|.c....!.|
|00002250| d0 d1 0e 09 21 d2 d3 b1 | 04 88 d4 20 88 0e 09 16 |....!...|... ....|
|00002260| 15 08 16 16 d7 16 18 29 | 0e 09 0e 5c 66 3d 83 4e |.......)|...\f=.N|
|00002270| 00 64 62 88 8a d9 20 88 | 0e 07 64 55 84 7f 01 da |.db... .|..dU....|
|00002280| 0e 0f d7 c3 23 83 7f 01 | db 94 62 88 db 79 88 dc |....#...|..b..y..|
|00002290| 20 1e 1d de 8e 0e 08 df | 0e 07 60 5c 22 5c 5c 16 | .......|..`\"\\.|
|000022a0| 08 2a 60 16 07 db 95 62 | 88 8a db 94 62 88 08 db |.*`....b|....b...|
|000022b0| 57 83 90 00 08 82 92 00 | 08 5b 79 88 60 29 1e 20 |W.......|.[y.`). |
|000022c0| 8a db 95 62 88 08 db 56 | 83 aa 00 08 54 79 88 82 |...b...V|....Ty..|
|000022d0| ad 00 c4 79 88 60 29 1e | 21 e2 e3 0e 08 5c 22 1e |...y.`).|!....\".|
|000022e0| 24 e5 0e 24 47 e6 5c 22 | 1e 27 d7 1e 28 8a c5 20 |$..$G.\"|.'..(.. |
|000022f0| 89 16 28 60 d7 93 88 0e | 5c 66 71 88 0e 28 0e 18 |..(`....|\fq..(..|
|00002300| 42 16 18 0e 5c 6e 84 e6 | 00 e9 08 21 84 e6 00 ea |B...\n..|...!....|
|00002310| 63 88 d7 16 5c 6e eb 0e | 09 0e 20 0e 21 23 88 ec |c...\n..|.. .!#..|
|00002320| 0e 21 0e 20 5a 21 88 08 | 89 16 28 db 56 83 15 01 |.!. Z!..|..(.V...|
|00002330| 0e 27 ed b1 02 88 c4 79 | 88 0e 28 53 89 16 28 82 |.'.....y|..(S..(.|
|00002340| fe 00 0e 08 1e 2e 0e 06 | 60 db 95 db 94 5a 5c 5c |........|`....Z\\|
|00002350| d7 93 88 60 0e 06 57 83 | 5d 01 0e 24 84 38 01 e2 |...`..W.|]..$.8..|
|00002360| e3 0e 2e 5c 22 16 24 0e | 24 ed b1 02 88 ef 8a db |...\".$.|$.......|
|00002370| 79 88 60 29 8a d7 7f 88 | 60 29 f0 f1 24 88 d7 16 |y.`)....|`)..$...|
|00002380| 24 c4 79 88 0e 2e 54 16 | 2e 82 25 01 29 0e 28 08 |$.y...T.|..%.).(.|
|00002390| 57 83 77 01 0e 27 ed b1 | 02 88 c4 79 88 0e 28 54 |W.w..'..|...y..(T|
|000023a0| 89 16 28 82 60 01 29 c4 | 79 88 2d 82 52 00 0e 5c |..(.`.).|y.-.R..\|
|000023b0| 66 71 88 0e 18 9f 16 18 | 74 85 92 01 f2 f3 0e 18 |fq......|t.......|
|000023c0| 47 5c 22 29 91 2d 87 22 | 20 5b 6e 6c 69 6e 65 73 |G\").-."| [nlines|
|000023d0| 20 70 72 65 66 69 78 2d | 6e 75 6d 65 72 69 63 2d | prefix-|numeric-|
|000023e0| 76 61 6c 75 65 20 6c 69 | 73 74 2d 6d 61 74 63 68 |value li|st-match|
|000023f0| 69 6e 67 2d 6c 69 6e 65 | 73 2d 64 65 66 61 75 6c |ing-line|s-defaul|
|00002400| 74 2d 63 6f 6e 74 65 78 | 74 2d 6c 69 6e 65 73 20 |t-contex|t-lines |
|00002410| 74 20 31 20 6d 61 6b 65 | 2d 6d 61 72 6b 65 72 20 |t 1 make|-marker |
|00002420| 66 69 6e 61 6c 2d 63 6f | 6e 74 65 78 74 2d 73 74 |final-co|ntext-st|
|00002430| 61 72 74 20 70 72 65 76 | 70 6f 73 20 6c 69 6e 65 |art prev|pos line|
|00002440| 6e 75 6d 20 62 75 66 66 | 65 72 20 66 69 72 73 74 |num buff|er first|
|00002450| 20 22 2a 4f 63 63 75 72 | 2a 22 20 73 74 61 6e 64 | "*Occur|*" stand|
|00002460| 61 72 64 2d 6f 75 74 70 | 75 74 20 22 4c 69 6e 65 |ard-outp|ut "Line|
|00002470| 73 20 6d 61 74 63 68 69 | 6e 67 20 22 20 70 72 69 |s matchi|ng " pri|
|00002480| 6e 31 20 72 65 67 65 78 | 70 20 22 20 69 6e 20 62 |n1 regex|p " in b|
|00002490| 75 66 66 65 72 20 22 20 | 62 75 66 66 65 72 2d 6e |uffer " |buffer-n|
|000024a0| 61 6d 65 20 34 36 20 31 | 30 20 6f 63 63 75 72 2d |ame 46 1|0 occur-|
|000024b0| 6d 6f 64 65 20 6f 63 63 | 75 72 2d 62 75 66 66 65 |mode occ|ur-buffe|
|000024c0| 72 20 6f 63 63 75 72 2d | 6e 6c 69 6e 65 73 20 6e |r occur-|nlines n|
|000024d0| 69 6c 20 6f 63 63 75 72 | 2d 70 6f 73 2d 6c 69 73 |il occur|-pos-lis|
|000024e0| 74 20 62 65 67 69 6e 6e | 69 6e 67 2d 6f 66 2d 62 |t beginn|ing-of-b|
|000024f0| 75 66 66 65 72 20 72 65 | 2d 73 65 61 72 63 68 2d |uffer re|-search-|
|00002500| 66 6f 72 77 61 72 64 20 | 30 20 6d 61 74 63 68 2d |forward |0 match-|
|00002510| 64 61 74 61 20 6d 61 74 | 63 68 2d 64 61 74 61 20 |data mat|ch-data |
|00002520| 28 28 73 74 6f 72 65 2d | 6d 61 74 63 68 2d 64 61 |((store-|match-da|
|00002530| 74 61 20 6d 61 74 63 68 | 2d 64 61 74 61 29 29 20 |ta match|-data)) |
|00002540| 63 6f 75 6e 74 2d 6c 69 | 6e 65 73 20 73 74 61 72 |count-li|nes star|
|00002550| 74 20 65 6e 64 20 66 6f | 72 6d 61 74 20 22 25 33 |t end fo|rmat "%3|
|00002560| 64 22 20 74 61 67 20 6d | 61 6b 65 2d 73 74 72 69 |d" tag m|ake-stri|
|00002570| 6e 67 20 33 32 20 65 6d | 70 74 79 20 74 65 6d 20 |ng 32 em|pty tem |
|00002580| 7a 65 72 6f 70 20 22 2d | 2d 2d 2d 2d 2d 2d 2d 5c |zerop "-|-------\|
|00002590| 6e 22 20 69 6e 73 65 72 | 74 2d 62 75 66 66 65 72 |n" inser|t-buffer|
|000025a0| 2d 73 75 62 73 74 72 69 | 6e 67 20 62 61 63 6b 77 |-substri|ng backw|
|000025b0| 61 72 64 2d 63 68 61 72 | 20 35 38 20 74 68 69 73 |ard-char| 58 this|
|000025c0| 2d 6c 69 6e 65 6e 75 6d | 20 70 75 74 2d 74 65 78 |-linenum| put-tex|
|000025d0| 74 2d 70 72 6f 70 65 72 | 74 79 20 6d 6f 75 73 65 |t-proper|ty mouse|
|000025e0| 2d 66 61 63 65 20 68 69 | 67 68 6c 69 67 68 74 20 |-face hi|ghlight |
|000025f0| 6d 65 73 73 61 67 65 20 | 22 25 64 20 6d 61 74 63 |message |"%d matc|
|00002600| 68 69 6e 67 20 6c 69 6e | 65 73 2e 22 5d 20 37 20 |hing lin|es."] 7 |
|00002610| 22 5c 0a 53 68 6f 77 20 | 61 6c 6c 20 6c 69 6e 65 |"\.Show |all line|
|00002620| 73 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |s in the| current|
|00002630| 20 62 75 66 66 65 72 20 | 63 6f 6e 74 61 69 6e 69 | buffer |containi|
|00002640| 6e 67 20 61 20 6d 61 74 | 63 68 20 66 6f 72 20 52 |ng a mat|ch for R|
|00002650| 45 47 45 58 50 2e 0a 0a | 49 66 20 61 20 6d 61 74 |EGEXP...|If a mat|
|00002660| 63 68 20 73 70 72 65 61 | 64 73 20 61 63 72 6f 73 |ch sprea|ds acros|
|00002670| 73 20 6d 75 6c 74 69 70 | 6c 65 20 6c 69 6e 65 73 |s multip|le lines|
|00002680| 2c 20 61 6c 6c 20 74 68 | 6f 73 65 20 6c 69 6e 65 |, all th|ose line|
|00002690| 73 20 61 72 65 20 73 68 | 6f 77 6e 2e 0a 0a 45 61 |s are sh|own...Ea|
|000026a0| 63 68 20 6c 69 6e 65 20 | 69 73 20 64 69 73 70 6c |ch line |is displ|
|000026b0| 61 79 65 64 20 77 69 74 | 68 20 4e 4c 49 4e 45 53 |ayed wit|h NLINES|
|000026c0| 20 6c 69 6e 65 73 20 62 | 65 66 6f 72 65 20 61 6e | lines b|efore an|
|000026d0| 64 20 61 66 74 65 72 2c | 20 6f 72 20 2d 4e 4c 49 |d after,| or -NLI|
|000026e0| 4e 45 53 0a 62 65 66 6f | 72 65 20 69 66 20 4e 4c |NES.befo|re if NL|
|000026f0| 49 4e 45 53 20 69 73 20 | 6e 65 67 61 74 69 76 65 |INES is |negative|
|00002700| 2e 0a 4e 4c 49 4e 45 53 | 20 64 65 66 61 75 6c 74 |..NLINES| default|
|00002710| 73 20 74 6f 20 60 6c 69 | 73 74 2d 6d 61 74 63 68 |s to `li|st-match|
|00002720| 69 6e 67 2d 6c 69 6e 65 | 73 2d 64 65 66 61 75 6c |ing-line|s-defaul|
|00002730| 74 2d 63 6f 6e 74 65 78 | 74 2d 6c 69 6e 65 73 27 |t-contex|t-lines'|
|00002740| 2e 0a 49 6e 74 65 72 61 | 63 74 69 76 65 6c 79 20 |..Intera|ctively |
|00002750| 69 74 20 69 73 20 74 68 | 65 20 70 72 65 66 69 78 |it is th|e prefix|
|00002760| 20 61 72 67 2e 0a 0a 54 | 68 65 20 6c 69 6e 65 73 | arg...T|he lines|
|00002770| 20 61 72 65 20 73 68 6f | 77 6e 20 69 6e 20 61 20 | are sho|wn in a |
|00002780| 62 75 66 66 65 72 20 6e | 61 6d 65 64 20 60 2a 4f |buffer n|amed `*O|
|00002790| 63 63 75 72 2a 27 2e 0a | 49 74 20 73 65 72 76 65 |ccur*'..|It serve|
|000027a0| 73 20 61 73 20 61 20 6d | 65 6e 75 20 74 6f 20 66 |s as a m|enu to f|
|000027b0| 69 6e 64 20 61 6e 79 20 | 6f 66 20 74 68 65 20 6f |ind any |of the o|
|000027c0| 63 63 75 72 72 65 6e 63 | 65 73 20 69 6e 20 74 68 |ccurrenc|es in th|
|000027d0| 69 73 20 62 75 66 66 65 | 72 2e 0a 5c 5c 5b 64 65 |is buffe|r..\\[de|
|000027e0| 73 63 72 69 62 65 2d 6d | 6f 64 65 5d 20 69 6e 20 |scribe-m|ode] in |
|000027f0| 74 68 61 74 20 62 75 66 | 66 65 72 20 77 69 6c 6c |that buf|fer will|
|00002800| 20 65 78 70 6c 61 69 6e | 20 68 6f 77 2e 22 20 28 | explain| how." (|
|00002810| 6c 69 73 74 20 28 6c 65 | 74 2a 20 28 28 64 65 66 |list (le|t* ((def|
|00002820| 61 75 6c 74 20 28 63 61 | 72 20 72 65 67 65 78 70 |ault (ca|r regexp|
|00002830| 2d 68 69 73 74 6f 72 79 | 29 29 20 28 69 6e 70 75 |-history|)) (inpu|
|00002840| 74 20 28 72 65 61 64 2d | 66 72 6f 6d 2d 6d 69 6e |t (read-|from-min|
|00002850| 69 62 75 66 66 65 72 20 | 28 69 66 20 64 65 66 61 |ibuffer |(if defa|
|00002860| 75 6c 74 20 28 66 6f 72 | 6d 61 74 20 22 4c 69 73 |ult (for|mat "Lis|
|00002870| 74 20 6c 69 6e 65 73 20 | 6d 61 74 63 68 69 6e 67 |t lines |matching|
|00002880| 20 72 65 67 65 78 70 20 | 28 64 65 66 61 75 6c 74 | regexp |(default|
|00002890| 20 60 25 73 27 29 3a 20 | 22 20 64 65 66 61 75 6c | `%s'): |" defaul|
|000028a0| 74 29 20 22 4c 69 73 74 | 20 6c 69 6e 65 73 20 6d |t) "List| lines m|
|000028b0| 61 74 63 68 69 6e 67 20 | 72 65 67 65 78 70 3a 20 |atching |regexp: |
|000028c0| 22 29 20 6e 69 6c 20 6e | 69 6c 20 6e 69 6c 20 28 |") nil n|il nil (|
|000028d0| 71 75 6f 74 65 20 72 65 | 67 65 78 70 2d 68 69 73 |quote re|gexp-his|
|000028e0| 74 6f 72 79 29 29 29 29 | 20 28 69 66 20 28 3e 20 |tory))))| (if (> |
|000028f0| 28 6c 65 6e 67 74 68 20 | 69 6e 70 75 74 29 20 30 |(length |input) 0|
|00002900| 29 20 69 6e 70 75 74 20 | 28 73 65 74 63 61 72 20 |) input |(setcar |
|00002910| 72 65 67 65 78 70 2d 68 | 69 73 74 6f 72 79 20 64 |regexp-h|istory d|
|00002920| 65 66 61 75 6c 74 29 29 | 29 20 63 75 72 72 65 6e |efault))|) curren|
|00002930| 74 2d 70 72 65 66 69 78 | 2d 61 72 67 29 5d 29 0a |t-prefix|-arg)]).|
|00002940| 28 64 65 66 63 6f 6e 73 | 74 20 71 75 65 72 79 2d |(defcons|t query-|
|00002950| 72 65 70 6c 61 63 65 2d | 68 65 6c 70 20 22 54 79 |replace-|help "Ty|
|00002960| 70 65 20 53 70 61 63 65 | 20 6f 72 20 60 79 27 20 |pe Space| or `y' |
|00002970| 74 6f 20 72 65 70 6c 61 | 63 65 20 6f 6e 65 20 6d |to repla|ce one m|
|00002980| 61 74 63 68 2c 20 44 65 | 6c 65 74 65 20 6f 72 20 |atch, De|lete or |
|00002990| 60 6e 27 20 74 6f 20 73 | 6b 69 70 20 74 6f 20 6e |`n' to s|kip to n|
|000029a0| 65 78 74 2c 5c 6e 52 45 | 54 20 6f 72 20 60 71 27 |ext,\nRE|T or `q'|
|000029b0| 20 74 6f 20 65 78 69 74 | 2c 20 50 65 72 69 6f 64 | to exit|, Period|
|000029c0| 20 74 6f 20 72 65 70 6c | 61 63 65 20 6f 6e 65 20 | to repl|ace one |
|000029d0| 6d 61 74 63 68 20 61 6e | 64 20 65 78 69 74 2c 5c |match an|d exit,\|
|000029e0| 6e 43 6f 6d 6d 61 20 74 | 6f 20 72 65 70 6c 61 63 |nComma t|o replac|
|000029f0| 65 20 62 75 74 20 6e 6f | 74 20 6d 6f 76 65 20 70 |e but no|t move p|
|00002a00| 6f 69 6e 74 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |oint imm|ediately|
|00002a10| 2c 5c 6e 43 2d 72 20 74 | 6f 20 65 6e 74 65 72 20 |,\nC-r t|o enter |
|00002a20| 72 65 63 75 72 73 69 76 | 65 20 65 64 69 74 20 28 |recursiv|e edit (|
|00002a30| 5c 5c 5b 65 78 69 74 2d | 72 65 63 75 72 73 69 76 |\\[exit-|recursiv|
|00002a40| 65 2d 65 64 69 74 5d 20 | 74 6f 20 67 65 74 20 6f |e-edit] |to get o|
|00002a50| 75 74 20 61 67 61 69 6e | 29 2c 5c 6e 43 2d 77 20 |ut again|),\nC-w |
|00002a60| 74 6f 20 64 65 6c 65 74 | 65 20 6d 61 74 63 68 20 |to delet|e match |
|00002a70| 61 6e 64 20 72 65 63 75 | 72 73 69 76 65 20 65 64 |and recu|rsive ed|
|00002a80| 69 74 2c 5c 6e 43 2d 6c | 20 74 6f 20 63 6c 65 61 |it,\nC-l| to clea|
|00002a90| 72 20 74 68 65 20 73 63 | 72 65 65 6e 2c 20 72 65 |r the sc|reen, re|
|00002aa0| 64 69 73 70 6c 61 79 2c | 20 61 6e 64 20 6f 66 66 |display,| and off|
|00002ab0| 65 72 20 73 61 6d 65 20 | 72 65 70 6c 61 63 65 6d |er same |replacem|
|00002ac0| 65 6e 74 20 61 67 61 69 | 6e 2c 5c 6e 21 20 74 6f |ent agai|n,\n! to|
|00002ad0| 20 72 65 70 6c 61 63 65 | 20 61 6c 6c 20 72 65 6d | replace| all rem|
|00002ae0| 61 69 6e 69 6e 67 20 6d | 61 74 63 68 65 73 20 77 |aining m|atches w|
|00002af0| 69 74 68 20 6e 6f 20 6d | 6f 72 65 20 71 75 65 73 |ith no m|ore ques|
|00002b00| 74 69 6f 6e 73 2c 5c 6e | 5e 20 74 6f 20 6d 6f 76 |tions,\n|^ to mov|
|00002b10| 65 20 70 6f 69 6e 74 20 | 62 61 63 6b 20 74 6f 20 |e point |back to |
|00002b20| 70 72 65 76 69 6f 75 73 | 20 6d 61 74 63 68 2e 22 |previous| match."|
|00002b30| 20 22 5c 0a 48 65 6c 70 | 20 6d 65 73 73 61 67 65 | "\.Help| message|
|00002b40| 20 77 68 69 6c 65 20 69 | 6e 20 71 75 65 72 79 2d | while i|n query-|
|00002b50| 72 65 70 6c 61 63 65 22 | 29 0a 28 64 65 66 76 61 |replace"|).(defva|
|00002b60| 72 20 71 75 65 72 79 2d | 72 65 70 6c 61 63 65 2d |r query-|replace-|
|00002b70| 6d 61 70 20 28 6d 61 6b | 65 2d 73 70 61 72 73 65 |map (mak|e-sparse|
|00002b80| 2d 6b 65 79 6d 61 70 29 | 20 22 5c 0a 4b 65 79 6d |-keymap)| "\.Keym|
|00002b90| 61 70 20 74 68 61 74 20 | 64 65 66 69 6e 65 73 20 |ap that |defines |
|00002ba0| 74 68 65 20 72 65 73 70 | 6f 6e 73 65 73 20 74 6f |the resp|onses to|
|00002bb0| 20 71 75 65 73 74 69 6f | 6e 73 20 69 6e 20 60 71 | questio|ns in `q|
|00002bc0| 75 65 72 79 2d 72 65 70 | 6c 61 63 65 27 2e 0a 54 |uery-rep|lace'..T|
|00002bd0| 68 65 20 5c 22 62 69 6e | 64 69 6e 67 73 5c 22 20 |he \"bin|dings\" |
|00002be0| 69 6e 20 74 68 69 73 20 | 6d 61 70 20 61 72 65 20 |in this |map are |
|00002bf0| 6e 6f 74 20 63 6f 6d 6d | 61 6e 64 73 3b 20 74 68 |not comm|ands; th|
|00002c00| 65 79 20 61 72 65 20 61 | 6e 73 77 65 72 73 2e 0a |ey are a|nswers..|
|00002c10| 54 68 65 20 76 61 6c 69 | 64 20 61 6e 73 77 65 72 |The vali|d answer|
|00002c20| 73 20 69 6e 63 6c 75 64 | 65 20 60 61 63 74 27 2c |s includ|e `act',|
|00002c30| 20 60 73 6b 69 70 27 2c | 20 60 61 63 74 2d 61 6e | `skip',| `act-an|
|00002c40| 64 2d 73 68 6f 77 27 2c | 0a 60 65 78 69 74 27 2c |d-show',|.`exit',|
|00002c50| 20 60 61 63 74 2d 61 6e | 64 2d 65 78 69 74 27 2c | `act-an|d-exit',|
|00002c60| 20 60 65 64 69 74 27 2c | 20 60 64 65 6c 65 74 65 | `edit',| `delete|
|00002c70| 2d 61 6e 64 2d 65 64 69 | 74 27 2c 20 60 72 65 63 |-and-edi|t', `rec|
|00002c80| 65 6e 74 65 72 27 2c 0a | 60 61 75 74 6f 6d 61 74 |enter',.|`automat|
|00002c90| 69 63 27 2c 20 60 62 61 | 63 6b 75 70 27 2c 20 61 |ic', `ba|ckup', a|
|00002ca0| 6e 64 20 60 68 65 6c 70 | 27 2e 22 29 0a 28 62 79 |nd `help|'.").(by|
|00002cb0| 74 65 2d 63 6f 64 65 20 | 22 c0 09 c2 c3 23 88 c0 |te-code |"....#..|
|00002cc0| 09 c4 c5 23 88 c0 09 c6 | c5 23 88 c0 09 c7 c5 23 |...#....|.#.....#|
|00002cd0| 88 c0 09 c8 c3 23 88 c0 | 09 c9 c5 23 88 c0 09 ca |.....#..|...#....|
|00002ce0| cb 23 88 c0 09 cc cd 23 | 88 c0 09 ce cd 23 88 c0 |.#.....#|.....#..|
|00002cf0| 09 cf cd 23 88 c0 09 d0 | d1 23 88 c0 09 d2 d3 23 |...#....|.#.....#|
|00002d00| 88 c0 09 d4 d5 23 88 c0 | 09 d6 d7 23 88 c0 09 d8 |.....#..|...#....|
|00002d10| d9 23 88 c0 09 da db 23 | 88 c0 09 dc dd 23 88 c0 |.#.....#|.....#..|
|00002d20| 09 de dd 23 88 c0 09 df | e0 23 88 c0 09 e1 e0 23 |...#....|.#.....#|
|00002d30| 87 22 20 5b 64 65 66 69 | 6e 65 2d 6b 65 79 20 71 |." [defi|ne-key q|
|00002d40| 75 65 72 79 2d 72 65 70 | 6c 61 63 65 2d 6d 61 70 |uery-rep|lace-map|
|00002d50| 20 22 20 22 20 61 63 74 | 20 22 7f 22 20 73 6b 69 | " " act| "." ski|
|00002d60| 70 20 5b 64 65 6c 65 74 | 65 5d 20 5b 62 61 63 6b |p [delet|e] [back|
|00002d70| 73 70 61 63 65 5d 20 22 | 79 22 20 22 6e 22 20 22 |space] "|y" "n" "|
|00002d80| 2c 22 20 61 63 74 2d 61 | 6e 64 2d 73 68 6f 77 20 |," act-a|nd-show |
|00002d90| 22 71 22 20 65 78 69 74 | 20 22 0d 22 20 5b 72 65 |"q" exit| "." [re|
|00002da0| 74 75 72 6e 5d 20 22 2e | 22 20 61 63 74 2d 61 6e |turn] ".|" act-an|
|00002db0| 64 2d 65 78 69 74 20 22 | 12 22 20 65 64 69 74 20 |d-exit "|." edit |
|00002dc0| 22 17 22 20 64 65 6c 65 | 74 65 2d 61 6e 64 2d 65 |"." dele|te-and-e|
|00002dd0| 64 69 74 20 22 5c 66 22 | 20 72 65 63 65 6e 74 65 |dit "\f"| recente|
|00002de0| 72 20 22 21 22 20 61 75 | 74 6f 6d 61 74 69 63 20 |r "!" au|tomatic |
|00002df0| 22 5e 22 20 62 61 63 6b | 75 70 20 22 08 22 20 68 |"^" back|up "." h|
|00002e00| 65 6c 70 20 22 3f 22 20 | 22 07 22 20 71 75 69 74 |elp "?" |"." quit|
|00002e10| 20 22 1d 22 5d 20 34 29 | 0a 28 64 65 66 61 6c 69 | "."] 4)|.(defali|
|00002e20| 61 73 20 27 70 65 72 66 | 6f 72 6d 2d 72 65 70 6c |as 'perf|orm-repl|
|00002e30| 61 63 65 20 23 5b 28 66 | 72 6f 6d 2d 73 74 72 69 |ace #[(f|rom-stri|
|00002e40| 6e 67 20 72 65 70 6c 61 | 63 65 6d 65 6e 74 73 20 |ng repla|cements |
|00002e50| 71 75 65 72 79 2d 66 6c | 61 67 20 72 65 67 65 78 |query-fl|ag regex|
|00002e60| 70 2d 66 6c 61 67 20 64 | 65 6c 69 6d 69 74 65 64 |p-flag d|elimited|
|00002e70| 2d 66 6c 61 67 20 26 6f | 70 74 69 6f 6e 61 6c 20 |-flag &o|ptional |
|00002e80| 72 65 70 65 61 74 2d 63 | 6f 75 6e 74 20 6d 61 70 |repeat-c|ount map|
|00002e90| 29 20 22 08 84 06 00 09 | 10 5c 6e 85 12 00 0b 85 |) ".....|.\n.....|
|00002ea0| 12 00 5c 66 89 97 98 3f | 0d 3f 0d 83 1d 00 c6 82 |..\f...?|.?......|
|00002eb0| 1e 00 c7 5c 66 c8 89 c9 | ca c8 c9 89 c8 ca 0e 0b |...\f...|........|
|00002ec0| 85 30 00 cc cd 21 1e 0e | 1e 0f 1e 10 1e 11 1e 12 |.0...!..|........|
|00002ed0| 1e 13 1e 14 1e 15 1e 16 | 1e 17 1e 18 1e 19 1e 1a |........|........|
|00002ee0| 1e 1b 0e 1c 3b 83 59 00 | 0e 1c 16 16 82 61 00 0e |....;.Y.|.....a..|
|00002ef0| 1d 84 61 00 de 16 1d 0e | 1f 83 79 00 c6 16 19 e0 |..a.....|..y.....|
|00002f00| 0d 83 72 00 5c 66 82 75 | 00 e1 5c 66 21 e0 51 16 |..r.\f.u|..\f!.Q.|
|00002f10| 18 e2 20 88 e3 20 88 e4 | 8e 0e 14 83 e3 02 6d 84 |.. .. ..|......m.|
|00002f20| e3 02 0e 19 0e 18 c8 ca | 23 83 e3 02 0e 10 60 3d |........|#.....`=|
|00002f30| 84 ac 00 0d 83 bd 00 0e | 10 c9 94 3d 83 bd 00 0e |........|...=....|
|00002f40| 0f 84 bd 00 6d 84 e3 02 | de 75 88 0e 19 0e 18 c8 |....m...|.u......|
|00002f50| ca 23 82 be 00 ca 83 e3 | 02 e5 20 16 17 0d 83 cf |.#......|.. .....|
|00002f60| 00 e6 0e 18 21 16 0f 0e | 1c 3c 83 f4 00 0e 12 0e |....!...|.<......|
|00002f70| 11 55 83 f4 00 0e 12 0e | 1d 5c 5c 16 12 0e 15 0e |.U......|.\\.....|
|00002f80| 1c 38 16 16 0e 15 54 0e | 1c 47 a6 16 15 0e 0b 84 |.8....T.|.G......|
|00002f90| 0f 01 e7 0e 17 21 88 e8 | 0e 16 0e 1b 0e 1a 23 88 |.....!..|......#.|
|00002fa0| 0e 11 54 16 11 82 dd 02 | e3 20 88 c8 89 89 89 1e |..T.....|. ......|
|00002fb0| 29 1e 2a 1e 2b 1e 2c 0e | 2c 84 bd 02 e7 0e 17 21 |).*.+.,.|,......!|
|00002fc0| 88 ed c9 94 c9 95 5c 22 | 88 ce 0e 0e 5c 66 0e 16 |......\"|....\f..|
|00002fd0| 23 88 ee 20 16 2a ef 0e | 2a 21 16 2a f0 08 0e 2a |#.. .*..|*!.*...*|
|00002fe0| 5c 22 89 16 29 f1 3d 83 | 6c 01 f2 90 f3 f4 0d 83 |\"..).=.|l.......|
|00002ff0| 5a 01 f5 82 5b 01 f6 5c | 66 f7 0e 16 f8 cc 0e 39 |Z...[..\|f......9|
|00003000| 21 b0 07 21 91 88 82 1e | 01 0e 29 fa 3d 83 7d 01 |!..!....|..).=.}.|
|00003010| c8 16 14 ca 89 16 2c 82 | 20 01 0e 29 fb 3d 83 bd |......,.| ..).=..|
|00003020| 01 0e 13 83 ac 01 0e 13 | 40 89 1e 3c 40 62 88 0e |........|@..<@b..|
|00003030| 3c 41 ca 3d 89 16 2b 84 | a3 01 e7 0e 3c 41 21 88 |<A.=..+.|....<A!.|
|00003040| 0e 13 41 16 13 29 82 1e | 01 ce fd 21 88 fe ff 21 |..A..)..|...!...!|
|00003050| 88 81 40 00 de 21 88 82 | 1e 01 0e 29 81 41 00 3d |..@..!..|...).A.=|
|00003060| 83 dd 01 0e 2b 84 d4 01 | e8 0e 16 0e 1b 0e 1a 23 |....+...|.......#|
|00003070| 88 ca 16 2c ca 16 2b 82 | 1e 01 0e 29 81 42 00 3d |...,..+.|...).B.=|
|00003080| 83 00 02 0e 2b 84 f4 01 | e8 0e 16 0e 1b 0e 1a 23 |....+...|.......#|
|00003090| 88 c8 16 14 ca 16 2c ca | 16 2b 82 1e 01 0e 29 81 |......,.|.+....).|
|000030a0| 43 00 3d 83 1d 02 0e 2b | 84 1e 01 e8 0e 16 0e 1b |C.=....+|........|
|000030b0| 0e 1a 23 88 ca 16 2b 82 | 1e 01 0e 29 81 44 00 3d |..#...+.|...).D.=|
|000030c0| 83 40 02 0e 2b 84 34 02 | e8 0e 16 0e 1b 0e 1a 23 |.@..+.4.|.......#|
|000030d0| 88 ca 16 2c c8 16 0b ca | 16 2b 82 1e 01 0e 29 81 |...,....|.+....).|
|000030e0| 45 00 3d 83 50 02 ca 89 | 16 2c 82 20 01 0e 29 81 |E.=.P...|.,. ..).|
|000030f0| 46 00 3d 83 62 02 81 46 | 00 c8 21 88 82 1e 01 0e |F.=.b..F|..!.....|
|00003100| 29 81 47 00 3d 83 84 02 | e7 e5 20 8a 81 48 00 20 |).G.=...|.. ..H. |
|00003110| 88 29 21 88 0d 83 1e 01 | e6 0e 18 21 16 0f 82 1e |.)!.....|...!....|
|00003120| 01 0e 29 81 49 00 3d 83 | a5 02 c9 94 c9 95 7c 88 |..).I.=.|......|.|
|00003130| e7 e5 20 8a 81 48 00 20 | 88 29 21 88 ca 16 2b 82 |.. ..H. |.)!...+.|
|00003140| 1e 01 c8 16 14 81 4a 00 | 81 4b 00 0e 2a 21 0e 4c |......J.|.K..*!.L|
|00003150| 5c 22 16 4c ca 89 16 2c | 83 23 01 60 0e 2b 86 cc |\".L...,|.#.`.+..|
|00003160| 02 81 4d 00 81 4e 00 e5 | 20 5c 22 42 0e 13 42 16 |..M..N..| \"B..B.|
|00003170| 13 0e 2b 83 dc 02 0e 11 | 54 16 11 2c 60 16 10 82 |..+.....|T..,`...|
|00003180| 81 00 29 0e 14 85 eb 02 | 0e 13 2e 0e 87 22 20 5b |..).....|....." [|
|00003190| 6d 61 70 20 71 75 65 72 | 79 2d 72 65 70 6c 61 63 |map quer|y-replac|
|000031a0| 65 2d 6d 61 70 20 63 61 | 73 65 2d 66 6f 6c 64 2d |e-map ca|se-fold-|
|000031b0| 73 65 61 72 63 68 20 63 | 61 73 65 2d 72 65 70 6c |search c|ase-repl|
|000031c0| 61 63 65 20 66 72 6f 6d | 2d 73 74 72 69 6e 67 20 |ace from|-string |
|000031d0| 72 65 67 65 78 70 2d 66 | 6c 61 67 20 72 65 2d 73 |regexp-f|lag re-s|
|000031e0| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 73 65 |earch-fo|rward se|
|000031f0| 61 72 63 68 2d 66 6f 72 | 77 61 72 64 20 6e 69 6c |arch-for|ward nil|
|00003200| 20 30 20 74 20 71 75 65 | 72 79 2d 66 6c 61 67 20 | 0 t que|ry-flag |
|00003210| 73 75 62 73 74 69 74 75 | 74 65 2d 63 6f 6d 6d 61 |substitu|te-comma|
|00003220| 6e 64 2d 6b 65 79 73 20 | 22 51 75 65 72 79 20 72 |nd-keys |"Query r|
|00003230| 65 70 6c 61 63 69 6e 67 | 20 25 73 20 77 69 74 68 |eplacing| %s with|
|00003240| 20 25 73 3a 20 28 5c 5c | 3c 71 75 65 72 79 2d 72 | %s: (\\|<query-r|
|00003250| 65 70 6c 61 63 65 2d 6d | 61 70 3e 5c 5c 5b 68 65 |eplace-m|ap>\\[he|
|00003260| 6c 70 5d 20 66 6f 72 20 | 68 65 6c 70 29 20 22 20 |lp] for |help) " |
|00003270| 6d 65 73 73 61 67 65 20 | 6d 61 74 63 68 2d 61 67 |message |match-ag|
|00003280| 61 69 6e 20 6c 61 73 74 | 72 65 70 6c 20 72 65 70 |ain last|repl rep|
|00003290| 6c 61 63 65 2d 63 6f 75 | 6e 74 20 6e 65 78 74 2d |lace-cou|nt next-|
|000032a0| 72 6f 74 61 74 65 2d 63 | 6f 75 6e 74 20 73 74 61 |rotate-c|ount sta|
|000032b0| 63 6b 20 6b 65 65 70 2d | 67 6f 69 6e 67 20 72 65 |ck keep-|going re|
|000032c0| 70 6c 61 63 65 6d 65 6e | 74 2d 69 6e 64 65 78 20 |placemen|t-index |
|000032d0| 6e 65 78 74 2d 72 65 70 | 6c 61 63 65 6d 65 6e 74 |next-rep|lacement|
|000032e0| 20 72 65 61 6c 2d 6d 61 | 74 63 68 2d 64 61 74 61 | real-ma|tch-data|
|000032f0| 20 73 65 61 72 63 68 2d | 73 74 72 69 6e 67 20 73 | search-|string s|
|00003300| 65 61 72 63 68 2d 66 75 | 6e 63 74 69 6f 6e 20 6c |earch-fu|nction l|
|00003310| 69 74 65 72 61 6c 20 6e | 6f 63 61 73 69 66 79 20 |iteral n|ocasify |
|00003320| 72 65 70 6c 61 63 65 6d | 65 6e 74 73 20 72 65 70 |replacem|ents rep|
|00003330| 65 61 74 2d 63 6f 75 6e | 74 20 31 20 64 65 6c 69 |eat-coun|t 1 deli|
|00003340| 6d 69 74 65 64 2d 66 6c | 61 67 20 22 5c 5c 62 22 |mited-fl|ag "\\b"|
|00003350| 20 72 65 67 65 78 70 2d | 71 75 6f 74 65 20 70 75 | regexp-|quote pu|
|00003360| 73 68 2d 6d 61 72 6b 20 | 75 6e 64 6f 2d 62 6f 75 |sh-mark |undo-bou|
|00003370| 6e 64 61 72 79 20 28 28 | 72 65 70 6c 61 63 65 2d |ndary ((|replace-|
|00003380| 64 65 68 69 67 68 6c 69 | 67 68 74 29 29 20 6d 61 |dehighli|ght)) ma|
|00003390| 74 63 68 2d 64 61 74 61 | 20 6c 6f 6f 6b 69 6e 67 |tch-data| looking|
|000033a0| 2d 61 74 20 73 74 6f 72 | 65 2d 6d 61 74 63 68 2d |-at stor|e-match-|
|000033b0| 64 61 74 61 20 72 65 70 | 6c 61 63 65 2d 6d 61 74 |data rep|lace-mat|
|000033c0| 63 68 20 64 65 66 20 6b | 65 79 20 72 65 70 6c 61 |ch def k|ey repla|
|000033d0| 63 65 64 20 64 6f 6e 65 | 20 72 65 70 6c 61 63 65 |ced done| replace|
|000033e0| 2d 68 69 67 68 6c 69 67 | 68 74 20 72 65 61 64 2d |-highlig|ht read-|
|000033f0| 65 76 65 6e 74 20 76 65 | 63 74 6f 72 20 6c 6f 6f |event ve|ctor loo|
|00003400| 6b 75 70 2d 6b 65 79 20 | 68 65 6c 70 20 22 2a 48 |kup-key |help "*H|
|00003410| 65 6c 70 2a 22 20 70 72 | 69 6e 63 20 22 51 75 65 |elp*" pr|inc "Que|
|00003420| 72 79 20 72 65 70 6c 61 | 63 69 6e 67 20 22 20 22 |ry repla|cing " "|
|00003430| 72 65 67 65 78 70 20 22 | 20 22 22 20 22 20 77 69 |regexp "| "" " wi|
|00003440| 74 68 20 22 20 22 2e 5c | 6e 5c 6e 22 20 71 75 65 |th " ".\|n\n" que|
|00003450| 72 79 2d 72 65 70 6c 61 | 63 65 2d 68 65 6c 70 20 |ry-repla|ce-help |
|00003460| 65 78 69 74 20 62 61 63 | 6b 75 70 20 65 6c 74 20 |exit bac|kup elt |
|00003470| 22 4e 6f 20 70 72 65 76 | 69 6f 75 73 20 6d 61 74 |"No prev|ious mat|
|00003480| 63 68 22 20 64 69 6e 67 | 20 6e 6f 2d 74 65 72 6d |ch" ding| no-term|
|00003490| 69 6e 61 74 65 20 73 69 | 74 2d 66 6f 72 20 61 63 |inate si|t-for ac|
|000034a0| 74 20 61 63 74 2d 61 6e | 64 2d 65 78 69 74 20 61 |t act-an|d-exit a|
|000034b0| 63 74 2d 61 6e 64 2d 73 | 68 6f 77 20 61 75 74 6f |ct-and-s|how auto|
|000034c0| 6d 61 74 69 63 20 73 6b | 69 70 20 72 65 63 65 6e |matic sk|ip recen|
|000034d0| 74 65 72 20 65 64 69 74 | 20 72 65 63 75 72 73 69 |ter edit| recursi|
|000034e0| 76 65 2d 65 64 69 74 20 | 64 65 6c 65 74 65 2d 61 |ve-edit |delete-a|
|000034f0| 6e 64 2d 65 64 69 74 20 | 61 70 70 65 6e 64 20 6c |nd-edit |append l|
|00003500| 69 73 74 69 66 79 2d 6b | 65 79 2d 73 65 71 75 65 |istify-k|ey-seque|
|00003510| 6e 63 65 20 75 6e 72 65 | 61 64 2d 63 6f 6d 6d 61 |nce unre|ad-comma|
|00003520| 6e 64 2d 65 76 65 6e 74 | 73 20 6d 61 70 63 61 72 |nd-event|s mapcar|
|00003530| 20 23 5b 28 65 6c 74 29 | 20 22 08 85 5c 66 00 c1 | #[(elt)| "..\f..|
|00003540| 08 21 08 c2 89 93 88 87 | 22 20 5b 65 6c 74 20 6d |.!......|" [elt m|
|00003550| 61 72 6b 65 72 2d 70 6f | 73 69 74 69 6f 6e 20 6e |arker-po|sition n|
|00003560| 69 6c 5d 20 34 5d 5d 20 | 31 36 20 22 5c 0a 53 75 |il] 4]] |16 "\.Su|
|00003570| 62 72 6f 75 74 69 6e 65 | 20 6f 66 20 60 71 75 65 |broutine| of `que|
|00003580| 72 79 2d 72 65 70 6c 61 | 63 65 27 2e 20 20 49 74 |ry-repla|ce'. It|
|00003590| 73 20 63 6f 6d 70 6c 65 | 78 69 74 79 20 68 61 6e |s comple|xity han|
|000035a0| 64 6c 65 73 20 69 6e 74 | 65 72 61 63 74 69 76 65 |dles int|eractive|
|000035b0| 20 71 75 65 72 69 65 73 | 2e 0a 44 6f 6e 27 74 20 | queries|..Don't |
|000035c0| 75 73 65 20 74 68 69 73 | 20 69 6e 20 79 6f 75 72 |use this| in your|
|000035d0| 20 6f 77 6e 20 70 72 6f | 67 72 61 6d 20 75 6e 6c | own pro|gram unl|
|000035e0| 65 73 73 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 |ess you |want to |
|000035f0| 71 75 65 72 79 20 61 6e | 64 20 73 65 74 20 74 68 |query an|d set th|
|00003600| 65 20 6d 61 72 6b 0a 6a | 75 73 74 20 61 73 20 60 |e mark.j|ust as `|
|00003610| 71 75 65 72 79 2d 72 65 | 70 6c 61 63 65 27 20 64 |query-re|place' d|
|00003620| 6f 65 73 2e 20 20 49 6e | 73 74 65 61 64 2c 20 77 |oes. In|stead, w|
|00003630| 72 69 74 65 20 61 20 73 | 69 6d 70 6c 65 20 6c 6f |rite a s|imple lo|
|00003640| 6f 70 20 6c 69 6b 65 20 | 74 68 69 73 3a 0a 20 20 |op like |this:. |
|00003650| 28 77 68 69 6c 65 20 28 | 72 65 2d 73 65 61 72 63 |(while (|re-searc|
|00003660| 68 2d 66 6f 72 77 61 72 | 64 20 5c 22 66 6f 6f 5b |h-forwar|d \"foo[|
|00003670| 20 09 5d 2b 62 61 72 5c | 22 20 6e 69 6c 20 74 29 | .]+bar\|" nil t)|
|00003680| 0a 20 20 20 20 28 72 65 | 70 6c 61 63 65 2d 6d 61 |. (re|place-ma|
|00003690| 74 63 68 20 5c 22 66 6f | 6f 62 61 72 5c 22 20 6e |tch \"fo|obar\" n|
|000036a0| 69 6c 20 6e 69 6c 29 29 | 0a 77 68 69 63 68 20 77 |il nil))|.which w|
|000036b0| 69 6c 6c 20 72 75 6e 20 | 66 61 73 74 65 72 20 61 |ill run |faster a|
|000036c0| 6e 64 20 70 72 6f 62 61 | 62 6c 79 20 64 6f 20 65 |nd proba|bly do e|
|000036d0| 78 61 63 74 6c 79 20 77 | 68 61 74 20 79 6f 75 20 |xactly w|hat you |
|000036e0| 77 61 6e 74 2e 22 5d 29 | 0a 28 64 65 66 76 61 72 |want."])|.(defvar|
|000036f0| 20 71 75 65 72 79 2d 72 | 65 70 6c 61 63 65 2d 68 | query-r|eplace-h|
|00003700| 69 67 68 6c 69 67 68 74 | 20 6e 69 6c 20 22 5c 0a |ighlight| nil "\.|
|00003710| 2a 4e 6f 6e 2d 6e 69 6c | 20 6d 65 61 6e 73 20 74 |*Non-nil| means t|
|00003720| 6f 20 68 69 67 68 6c 69 | 67 68 74 20 77 6f 72 64 |o highli|ght word|
|00003730| 73 20 64 75 72 69 6e 67 | 20 71 75 65 72 79 20 72 |s during| query r|
|00003740| 65 70 6c 61 63 65 6d 65 | 6e 74 2e 22 29 0a 28 62 |eplaceme|nt.").(b|
|00003750| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 21 84 08 00 |yte-code| "..!...|
|00003760| c2 11 c3 c4 c5 5c 22 88 | c3 c6 c7 5c 22 87 22 20 |.....\".|...\"." |
|00003770| 5b 62 6f 75 6e 64 70 20 | 72 65 70 6c 61 63 65 2d |[boundp |replace-|
|00003780| 6f 76 65 72 6c 61 79 20 | 6e 69 6c 20 64 65 66 61 |overlay |nil defa|
|00003790| 6c 69 61 73 20 72 65 70 | 6c 61 63 65 2d 64 65 68 |lias rep|lace-deh|
|000037a0| 69 67 68 6c 69 67 68 74 | 20 23 5b 6e 69 6c 20 22 |ighlight| #[nil "|
|000037b0| 08 85 0b 00 c1 08 21 88 | c2 89 10 87 22 20 5b 72 |......!.|...." [r|
|000037c0| 65 70 6c 61 63 65 2d 6f | 76 65 72 6c 61 79 20 64 |eplace-o|verlay d|
|000037d0| 65 6c 65 74 65 2d 6f 76 | 65 72 6c 61 79 20 6e 69 |elete-ov|erlay ni|
|000037e0| 6c 5d 20 32 5d 20 72 65 | 70 6c 61 63 65 2d 68 69 |l] 2] re|place-hi|
|000037f0| 67 68 6c 69 67 68 74 20 | 23 5b 28 73 74 61 72 74 |ghlight |#[(start|
|00003800| 20 65 6e 64 29 20 22 08 | 85 23 00 09 84 1d 00 c2 | end) ".|.#......|
|00003810| 0b 5c 66 5c 22 11 c5 09 | c6 c7 c8 21 83 1a 00 c8 |.\f\"...|...!....|
|00003820| 82 1b 00 c9 23 88 ca 09 | 0b 5c 66 70 24 87 22 20 |....#...|.\fp$." |
|00003830| 5b 71 75 65 72 79 2d 72 | 65 70 6c 61 63 65 2d 68 |[query-r|eplace-h|
|00003840| 69 67 68 6c 69 67 68 74 | 20 72 65 70 6c 61 63 65 |ighlight| replace|
|00003850| 2d 6f 76 65 72 6c 61 79 | 20 6d 61 6b 65 2d 6f 76 |-overlay| make-ov|
|00003860| 65 72 6c 61 79 20 73 74 | 61 72 74 20 65 6e 64 20 |erlay st|art end |
|00003870| 6f 76 65 72 6c 61 79 2d | 70 75 74 20 66 61 63 65 |overlay-|put face|
|00003880| 20 69 6e 74 65 72 6e 61 | 6c 2d 66 69 6e 64 2d 66 | interna|l-find-f|
|00003890| 61 63 65 20 71 75 65 72 | 79 2d 72 65 70 6c 61 63 |ace quer|y-replac|
|000038a0| 65 20 72 65 67 69 6f 6e | 20 6d 6f 76 65 2d 6f 76 |e region| move-ov|
|000038b0| 65 72 6c 61 79 5d 20 35 | 5d 5d 20 33 29 0a |erlay] 5|]] 3). |
+--------+-------------------------+-------------------------+--------+--------+